public virtual Response Delete(Expression <Func <TModel, bool> > expression) { return(Respond(() => { CurrentDb.Delete(expression); })); }
/// <summary> /// 根据表达式删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public virtual bool Delete(Expression <Func <T, bool> > whereExpression) { return(CurrentDb.Delete(whereExpression)); }
/// <summary> /// 根据实体删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public virtual bool Delete(T data) { return(CurrentDb.Delete(data)); }
/// <summary> /// 根据主键删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public virtual bool Delete(dynamic id) { return(CurrentDb.Delete(id)); }
/// <summary> /// /// </summary> /// <param name="whereExpression"></param> public void DeleteNews(Expression <Func <News, bool> > whereExpression) { CurrentDb.Delete(whereExpression); }