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

SqlMapper.QueryForMap Method (String, Object, String)

Executes the SQL and retuns all rows selected in a map that is keyed on the property named in the keyProperty parameter. The value at each key will be the entire result object.

[Visual Basic]
NotOverridable Overloads Public Function QueryForMap( _
   ByVal String As String, _
   ByVal Object As Object, _
   ByVal String As String _
) As IDictionary _
    Implements ISqlMapper.
[C#]
public IDictionary QueryForMap(
   String statementName,
   Object parameterObject,
   String keyProperty
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.
keyProperty
The property of the result object to be used as the key.

Return Value

A IDictionary (Hashtable) of object containing the rows keyed by keyProperty.

Implements

ISqlMapper.

See Also

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