Beispiel #1
0
        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());
        }
Beispiel #2
0
 public static bool DeleteByID(EDatabase db, IQueryTable table, string id)
 {
     return(db.Delete(table).Where(table.IDColumn == id).Execute() == 1);
 }