Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoTemplate.DataTableFill(DataTable, CommandType, String) Method

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

[Visual Basic]
Public NotOverridable Overloads Sub DataTableFill( _
   ByVal dataTable As DataTable, _
   ByVal commandType As CommandType, _
   ByVal sql As String _
) _
    Implements IAdoOperations.DataTableFill
[C#]
public 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

Implements

IAdoOperations.DataTableFill

See Also

AdoTemplate Class | Spring.Data.Core Namespace | AdoTemplate.DataTableFill Overload List