public virtual int Remove <TEntity>(Expression <Func <TEntity, bool> > where, string connectionString) { return(DMContext.Delete <TEntity>(where, null, connectionString)); }
public virtual int Remove <TEntity>(Expression <Func <TEntity, bool> > where, IDbTransaction trans) { return(DMContext.Delete <TEntity>(where, trans)); }
public virtual int Remove <TEntity>(Expression <Func <TEntity, bool> > where) { return(DMContext.Delete <TEntity>(where)); }
public int Remove <T>(Expression <Func <T, bool> > where) { return(DMContext.Delete(where, this.trans.BeginTransaction())); }
/// <summary> /// 删除 /// </summary> /// <typeparam name="TEntity">实体类型</typeparam> /// <param name="where">条件表达式 Get(p => p.ID == 100 && p.Name == "hhahh2011") 或者使用Spec</param> /// <param name="trans">事务</param> /// <returns>受影响的行数</returns> protected virtual int DMDelete <TEntity>(Expression <Func <TEntity, bool> > where, IDbTransaction trans) { return(DMContext.Delete <TEntity>(where, trans)); }
/// <summary> /// 删除 /// </summary> /// <typeparam name="TEntity">实体类型</typeparam> /// <param name="where">条件表达式 Get(p => p.ID == 100 && p.Name == "hhahh2011") 或者使用Spec</param> /// <returns>受影响的行数</returns> protected virtual int DMDelete <TEntity>(Expression <Func <TEntity, bool> > where) { return(DMContext.Delete <TEntity>(where)); }