Exemple #1
0
 public List <T> ScalarListResultSync <T>(BaseUpdateQuery query, DbConnection con, DbTransaction tx, bool prepare = true)
 {
     using (var cmd = ToCommand(query, con, tx))
     {
         return(ScalarListResultSync <T>(cmd, prepare));
     }
 }
Exemple #2
0
 public async Task <T> ScalarResult <T>(BaseUpdateQuery query, DbConnection con, DbTransaction tx, bool prepare = true)
 {
     using (var cmd = ToCommand(query, con, tx))
     {
         return(await ScalarResult <T>(cmd, prepare));
     }
 }
 public async Task <List <T> > ScalarListResult <T>(BaseUpdateQuery query, DbConnection con, DbTransaction tx)
 {
     using (var cmd = ToCommand(query, con, tx))
     {
         return(await ScalarListResult <T>(cmd));
     }
 }
Exemple #4
0
 public T ScalarResultSync <T>(BaseUpdateQuery query, DbConnection con, DbTransaction tx)
 {
     using (var cmd = ToCommand(query, con, tx))
     {
         return(ScalarResultSync <T>(cmd));
     }
 }
Exemple #5
0
 public DbCommand ToCommand(BaseUpdateQuery query, DbConnection con, DbTransaction tx = null)
 => ToCommand <UpdateVisitor, BaseUpdateQuery>(query, con, tx);
Exemple #6
0
 public async Task <T> FirstOrDefault <T>(BaseUpdateQuery query, DbConnection con, DbTransaction tx = null, bool prepare = true) where T : new()
 {
     using (var cmd = ToCommand(query, con, tx))
         return(await FirstOrDefault <T>(cmd, prepare).ConfigureAwait(false));
 }
Exemple #7
0
 public string ToQueryText(BaseUpdateQuery query)
 => ToQueryText <UpdateVisitor, BaseUpdateQuery>(query);