Esempio n. 1
0
 public Task <int> ExecuteAsync(string sql, DynamicParameters parameters = null, CommandType?commandType = null)
 {
     if (CurrentTransaction != null)
     {
         return(DbExecProxyAsync <int>((param) => CurrentConnection.ExecuteAsync(sql, param, CurrentTransaction, null, commandType), sql, parameters));
     }
     using var connection = GetDbConnection(DataSourceEnum.MASTER);
     return(DbExecProxyAsync <int>((param) => connection.ExecuteAsync(sql, param, CurrentTransaction, null, commandType), sql, parameters));
 }