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