Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdoOperations.DataTableFill(DataTable, CommandType, String) Method

Fill a DataTable based on a select command that requires no parameters.

[Visual Basic]
Public Sub DataTableFill( _
   ByVal dataTable As DataTable, _
   ByVal commandType As CommandType, _
   ByVal sql As String _
)
[C#]
int DataTableFill(
   DataTable dataTable,
   CommandType commandType,
   string sql
);

Parameters

dataTable
The DataTable to populate
commandType
The type of command
sql
SQL query to execute

Return Value

The number of rows successfully added to or refreshed in the DataTable

See Also

IAdoOperations Interface | Spring.Data Namespace | IAdoOperations.DataTableFill Overload List