Version

Fill Method

Initializes the specified FlatDataSource from the data obtained through this adapter instance.
Syntax

Parameters

dataSource
A FlatDataSource instance to be initialized. This instance should be created with the parameterless constructor overload.
cubeGenerationParams
An optional CubeGenerationParameters instance which controls the manner in which the datacube is generated.
fieldAttributeCallback
An optional delegate which provides the ability to specify attributes for the property descriptor that is created for the recordset column.
Remarks

The Connection must be set to an open database connection before calling this method; failure to do so will result in an exception being thrown.

The Fill method is functionally similar to the DbDataAdapter's Fill method. After establishing a connection to a database, and defining a record selection criteria, use the Fill method to populate the FlatDataSource with row data obtained from the database select query.

Note that the Fill method executes synchronously, and will not block the calling thread, but the specified FlatDataSource instance will not be available to provide data until the InitializeAsyncCompleted event occurs.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also