public static int DeleteByWhere(EDatabase db, IQueryTable table, WhereClip where, bool withTran) { DeleteSqlSection delSection = db.Delete(table).Where(where); return(withTran ? delSection.ExecuteWithTran() : delSection.Execute()); }
public static bool DeleteByID(EDatabase db, IQueryTable table, string id) { return(db.Delete(table).Where(table.IDColumn == id).Execute() == 1); }