/// <summary> /// 按条件删除[基本方法] /// </summary> /// <param name="expression"></param> /// <returns></returns> public int Delete(Expression <Func <TModel, bool> > expression) { DBExtend helper = dbHelper; int n = helper.Delete <TModel>(expression); return(n); }
/// <summary> /// 按条件删除[基本方法] /// </summary> /// <typeparam name="TItem"></typeparam> /// <param name="expression"></param> /// <returns></returns> public static int Delete <TItem>(Expression <Func <TItem, bool> > expression) where TItem : TModel, new() { DBExtend helper = dbHelper; int n = helper.Delete <TItem>(expression); return(n); }