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