コード例 #1
0
 public static async Task <int> ExecuteAsync(this IDbConnection c, SqlQueryObject queryObject, IDbTransaction transaction = null, int?commandTimeout = null, CommandType?commandType = null)
 {
     return(await c.ExecuteAsync(queryObject.Sql, queryObject.QueryParams, transaction, commandTimeout, commandType).ConfigureAwait(false));
 }
コード例 #2
0
 public static int Execute(this IDbConnection c, SqlQueryObject queryObject, IDbTransaction transaction = null, int?commandTimeout = null, CommandType?commandType = null)
 {
     return(c.Execute(queryObject.Sql, queryObject.QueryParams, transaction, commandTimeout, commandType));
 }
コード例 #3
0
 public static async Task <IEnumerable <T> > QueryAsync <T>(this IDbConnection c, SqlQueryObject queryObject, IDbTransaction transaction = null, int?commandTimeout = null, CommandType?commandType = null)
 {
     return(await c.QueryAsync <T>(queryObject.Sql, queryObject.QueryParams, transaction, commandTimeout, commandType).ConfigureAwait(false));
 }
コード例 #4
0
 public static IEnumerable <T> Query <T>(this IDbConnection c, SqlQueryObject queryObject, IDbTransaction transaction = null, bool buffered = true, int?commandTimeout = null, CommandType?commandType = null)
 {
     return(c.Query <T>(queryObject.Sql, queryObject.QueryParams, transaction, buffered, commandTimeout, commandType));
 }