Пример #1
0
 /// <summary>
 /// TBL_User tabloya daki kayıt siler şarta göre
 /// </summary>
 /// <param name="entity"></param>
 /// <param name="where"></param>
 /// <returns></returns>
 public ReturnValue DeleteTBL_User(TBL_User entity, Expression <Func <TBL_User, object> > @where, DbTransaction tran = null)
 {
     using (var db = GetDB <TBL_User>(tran))
     {
         return(db.Table().Delete(entity, @where));
     }
 }
Пример #2
0
 /// <summary>
 /// TBL_User tabloya daki kayıtı siler primary key'e göre
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public ReturnValue DeleteTBL_User(TBL_User entity, DbTransaction tran = null)
 {
     using (var db = GetDB <TBL_User>(tran))
     {
         return(db.Table().Delete(entity));
     }
 }