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

SqlMapper.QueryForDictionary Method

Alias to QueryForMap, .NET spirit. Feature idea by Ted Husted.

Overload List

Alias to QueryForMap, .NET spirit. Feature idea by Ted Husted.

public IDictionary QueryForDictionary(String,Object,String);

Alias to QueryForMap, .NET spirit. Feature idea by Ted Husted.

public IDictionary QueryForDictionary(String,Object,String,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.

public IDictionary<K,V> QueryForDictionary<K,V>(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 value of the property specified in the valueProperty parameter. If valueProperty is null, the entire result object will be entered.

public IDictionary<K,V> QueryForDictionary<K,V>(String,Object,String,String);

Runs a query with a custom object that gets a chance to deal with each row as it is processed. The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.

public IDictionary<K,V> QueryForDictionary<K,V>(String,Object,String,String,DictionaryRowDelegate<K,V>);

See Also

SqlMapper Class | IBatisNet.DataMapper Namespace