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 hashtable 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. |
CachingStatement Class | IBatisNet.DataMapper.MappedStatements Namespace | CachingStatement.ExecuteQueryForDictionary Overload List