ComponentOne DataObjects for .NET
RowType Property (BaseTable)

C1.Data.2 Assembly > C1.Data.SchemaObjects Namespace > BaseTable Class : RowType Property
Gets or sets a class representing rows of this table or view.
Syntax
'Declaration
 
Public Overridable Property RowType As System.Type
public virtual System.Type RowType {get; set;}
Remarks
This property allows you to define a custom class representing rows of a table or table view. By default, row objects are represented by the C1DataRow class. To define a custom class, do the following:

1. In the data library dll, define a class derived from C1DataRow.

2. In the C1SchemaDef.CreateSchema event, assign this class to Table.RowType or TableView.RowType property.

If the RowType property is set for a table, simple or composite (DbTable or CompositeTable), all TableView objects based on this table will automatically use the same class, unless their RowType property is set explicitly, in which case TableView.RowType overrides the table setting.

See Also

Reference

BaseTable Class
BaseTable Members