internal static Task <int> DeleteAsync <T>(this IDbCommand dbCmd, SqlExpression <T> q, Action <IDbCommand> commandFilter, CancellationToken token) { var sql = q.ToDeleteRowStatement(); return(dbCmd.ExecuteSqlAsync(sql, q.Params, commandFilter, token)); }
public static int Delete <T>(this IDbCommand dbCmd, SqlExpression <T> where, Action <IDbCommand> commandFilter = null) { var sql = where.ToDeleteRowStatement(); return(dbCmd.ExecuteSql(sql, where.Params, commandFilter)); }
public static int Delete <T>(this IDbCommand dbCmd, SqlExpression <T> where) { var sql = where.ToDeleteRowStatement(); return(dbCmd.ExecuteSql(sql, where.Params)); }
public string ToDeleteRowStatement() { return(q.ToDeleteRowStatement()); }
internal static Task <int> DeleteAsync <T>(this IDbCommand dbCmd, SqlExpression <T> where, CancellationToken token) { var sql = where.ToDeleteRowStatement(); return(dbCmd.ExecuteSqlAsync(sql, token)); }