Exemplo n.º 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));
     }
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 3
0
 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));
     }
 }
Exemplo n.º 4
0
 public T ScalarResultSync <T>(BaseUpdateQuery query, DbConnection con, DbTransaction tx)
 {
     using (var cmd = ToCommand(query, con, tx))
     {
         return(ScalarResultSync <T>(cmd));
     }
 }
Exemplo n.º 5
0
 public DbCommand ToCommand(BaseUpdateQuery query, DbConnection con, DbTransaction tx = null)
 => ToCommand <UpdateVisitor, BaseUpdateQuery>(query, con, tx);
Exemplo n.º 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));
 }
Exemplo n.º 7
0
 public string ToQueryText(BaseUpdateQuery query)
 => ToQueryText <UpdateVisitor, BaseUpdateQuery>(query);