Ejemplo n.º 1
0
 public virtual int Remove <TEntity>(Expression <Func <TEntity, bool> > where, string connectionString)
 {
     return(DMContext.Delete <TEntity>(where, null, connectionString));
 }
Ejemplo n.º 2
0
 public virtual int Remove <TEntity>(Expression <Func <TEntity, bool> > where, IDbTransaction trans)
 {
     return(DMContext.Delete <TEntity>(where, trans));
 }
Ejemplo n.º 3
0
 public virtual int Remove <TEntity>(Expression <Func <TEntity, bool> > where)
 {
     return(DMContext.Delete <TEntity>(where));
 }
Ejemplo n.º 4
0
 public int Remove <T>(Expression <Func <T, bool> > where)
 {
     return(DMContext.Delete(where, this.trans.BeginTransaction()));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <typeparam name="TEntity">实体类型</typeparam>
 /// <param name="where">条件表达式 Get(p => p.ID == 100 &amp;&amp; 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));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <typeparam name="TEntity">实体类型</typeparam>
 /// <param name="where">条件表达式 Get(p => p.ID == 100 &amp;&amp; p.Name == "hhahh2011") 或者使用Spec</param>
 /// <returns>受影响的行数</returns>
 protected virtual int DMDelete <TEntity>(Expression <Func <TEntity, bool> > where)
 {
     return(DMContext.Delete <TEntity>(where));
 }