public static bool ExecuteProcedure(DbConnection conn, string procedure, IEnumerable <DbTemplateParameter> parameters, int?timeout = null) { return(DbExecutor <bool> .ExecuteSql(conn, procedure, CommandType.StoredProcedure, parameters, timeout)); }
public static bool ExecuteSQL(DbConnection conn, string query, IEnumerable <DbTemplateParameter> parameters, int?timeout = null) { return(DbExecutor <bool> .ExecuteSql(conn, query, CommandType.Text, parameters, timeout)); }