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.
A IDictionary of object containing the rows keyed by keyProperty.
Exception Type | Condition |
---|---|
DataMapperException | If a transaction is not in progress, or the database throws an exception. |
SqlMapper Class | IBatisNet.DataMapper Namespace | SqlMapper.QueryForDictionary Overload List