public override IList <IDictionary <string, object> > Select(string tableName, object parameter = null) { TableMapping mapping = TableMapper.GetTableMapping(this, tableName); using (IDataReader reader = QueryReader(MappingProvider.CreateSelectAllCommand(mapping, parameter), null)) { return(TableMapper.ReadAll <IDictionary <string, object> >(reader, mapping)); } }
public override IList <object> Select(Type type, object parameter = null) { TableMapping mapping = TableMapper.GetTableMapping(this, type); using (IDataReader reader = QueryReader(MappingProvider.CreateSelectAllCommand(mapping, parameter), null)) { return(TableMapper.ReadAll(type, reader, mapping)); } }