public void Delete(int id)
 {
     try
     {
         _logger.QuickLog(DbOperationType.Delete, typeof(E), id);
         _baseDao.Delete(id);
         _logger.LogSuccess(() => _baseDao.GetOneById(id) == null);
     }
     catch (Exception ex)
     {
         _logger.LogError(ex);
         //throw;
     }
 }
Beispiel #2
0
 public void Delete(Guid Id)
 {
     _baseDao.Delete(Id);
 }
Beispiel #3
0
 public void Delete(int InventoryID)
 {
     _dal.Delete <T_Inventory>(new T_Inventory {
         InventoryID = InventoryID
     }, true);
 }
 public void Delete(int ProductPicID)
 {
     _dal.Delete <T_ProductPic>(new T_ProductPic {
         ProductPicID = ProductPicID
     }, true);
 }
Beispiel #5
0
 public bool Delete <T>()
 {
     return(baseDao.Delete <T>());
 }
Beispiel #6
0
 /// <summary>
 /// 删除记录
 /// </summary>
 public int Delete(string tableName)
 {
     return(baseDao.Delete(tableName));
 }
 public void Delete(int ProductFruitsID)
 {
     _dal.Delete <C_ProductFruits>(new C_ProductFruits {
         ProductFruitsID = ProductFruitsID
     }, true);
 }
Beispiel #8
0
 public bool Delete(int id)
 {
     return(Instance.Delete(id));
 }
Beispiel #9
0
 public Boolean Delete(T model)
 {
     return(baseDao.Delete(model) > 0);
 }
Beispiel #10
0
 /// <summary>
 /// 删除Entity
 /// </summary>
 public bool Delete(T t)
 {
     return(dao.Delete(t));
 }
Beispiel #11
0
 public void Delete(int FruitPicID)
 {
     _dal.Delete <T_FruitPic>(new T_FruitPic {
         FruitPicID = FruitPicID
     }, true);
 }
Beispiel #12
0
 public void Delete(int StockinID)
 {
     _dal.Delete <T_Stockin>(new T_Stockin {
         StockinID = StockinID
     }, true);
 }
Beispiel #13
0
 public void Delete(int ProductOrdersID)
 {
     _dal.Delete <T_ProductOrders>(new T_ProductOrders {
         ProductOrdersID = ProductOrdersID
     }, true);
 }