Example #1
0
 public Task <IEnumerable <T> > GetRowsAsync <T>(DbCommand cmd, Func <IDataReader, Task <T> > mapper)
 {
     return(DatabaseTasks.GetRowsAsync(cmd, GetConnection(), mapper));
 }
Example #2
0
 public Task <T> GetOneRowAsync <T>(DbCommand cmd, Func <IDataReader, Task <T> > mapper)
 {
     return(DatabaseTasks.GetOneRowAsync(cmd, GetConnection(), mapper));
 }
Example #3
0
 public Task <object> ExecuteScalar(DbCommand cmd)
 {
     return(DatabaseTasks.ExecuteScalarAsync(cmd, GetConnection()));
 }
Example #4
0
 public Task ExecuteReader(DbCommand cmd, Action <IDataReader> action, CommandBehavior behavior = CommandBehavior.CloseConnection)
 {
     return(DatabaseTasks.ExecuteReaderAsync(cmd, GetConnection(), action, behavior));
 }
Example #5
0
 public Task <int> ExecuteNonQuery(DbCommand cmd)
 {
     return(DatabaseTasks.ExecuteNonQueryAsync(cmd, GetConnection()));
 }