[]
        
(Showing Draft Content)

C1.DataConnector.SourceTable

SourceTable Class

SourceTable represents a table containing rows of data.

Inheritance
SourceTable
Implements
Namespace: C1.DataConnector
Assembly: C1.DataConnector.dll
Syntax
public class SourceTable : IDisposable

Constructors

Name Description
SourceTable(bool)

The constructor of a SourceTable.

Properties

Name Description
Columns

An IEnumerable containing tuples representing the column name and the data type of each column.

FieldCount

The number of fields (Columns) of the current row.

OneTimeLoad

If this property is set to true than the rows are lazily loaded from the received DbDataReader. Otherwise all rows are loaded at once. This may affect the performance of the application.

Rows

An IEnumerable containing the rows of the SourceTable.

TableName

The name of the table.

Methods

Name Description
Dispose()

The dispose method of C1.DataConnector.SourceTable

InitiateFromReader(DbDataReader, string, Action, Type[])

Create a SourceTable from a DbDataReader. Datarows will be lazy-loaded when iterating Rows property.

LoadFromReader(DbDataReader, string, Action, Type[])

Create a SourceTable from a DbDataReader. All datarows will be loaded into memory.