iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

SqlMapper.QueryForList Method (String, Object, Int32, Int32)

Executes the SQL and retuns all rows selected.

The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
[Visual Basic]
NotOverridable Overloads Public Function QueryForList( _
   ByVal String As String, _
   ByVal Object As Object, _
   ByVal Int32 As Integer, _
   ByVal Int32 As Integer _
) As IList{``0} _
    Implements ISqlMapper.
[C#]
public IList<T> <T>QueryForList(
   String statementName,
   Object parameterObject,
   Int32 skipResults,
   Int32 maxResults
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.
skipResults
The number of rows to skip over.
maxResults
The maximum number of rows to return.

Return Value

A List of result objects.

Implements

ISqlMapper.

See Also

SqlMapper Class | IBatisNet.DataMapper Namespace | SqlMapper.QueryForList Overload List