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

SqlMapper.QueryForList Method (String, Object)

Executes a Sql SELECT statement that returns data to populate a number of result objects.

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 _
) As IList _
    Implements ISqlMapper.
[C#]
public IList QueryForList(
   String statementName,
   Object parameterObject
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.

Return Value

A List of result objects.

Implements

ISqlMapper.

See Also

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