ComponentOne DataObjects for .NET
DataAdapter Property (C1ExpressTable)

C1.Data.Express.2 Assembly > C1.Data.Express Namespace > C1ExpressTable Class : DataAdapter Property
Returns or sets the IDBDataAdapter component used to fill and update the table with non-empty SelectCommandText.
Syntax
'Declaration
 
Public Property DataAdapter As System.Data.IDbDataAdapter
public System.Data.IDbDataAdapter DataAdapter {get; set;}
Remarks
This property allows to support updateable SQL-based tables based on a SQL SELECT statement or a stored procedure, without manual code, using ADO.NET data adapter. This makes working with SQL-based tables in C1DataObjects almost as easy as working with bound tables (when DataMode=Bound, DbTableName set to a database table name). However, bound tables should be always preferable when you have a choice. Bound tables are more intimately related to database tables, so C1DataObjects can support features, such as virtual mode, that are unavailable for SQL-based tables, see Bound, SQL-Based and Unbound tables.

See the SQLBasedTablesEasy sample in the samples directory for an example of using a data adapter.

A data adapter component can be created using the Create DataAdapter context menu item or created manually and attached to the DataAdapter property.

See C1TableLogic.DataAdapter.

See Also

Reference

C1ExpressTable Class
C1ExpressTable Members