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;
     }
 }
Exemple #2
0
 public void Delete(Guid Id)
 {
     _baseDao.Delete(Id);
 }
Exemple #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);
 }
Exemple #5
0
 public bool Delete <T>()
 {
     return(baseDao.Delete <T>());
 }
Exemple #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);
 }
Exemple #8
0
 public bool Delete(int id)
 {
     return(Instance.Delete(id));
 }
Exemple #9
0
 public Boolean Delete(T model)
 {
     return(baseDao.Delete(model) > 0);
 }
Exemple #10
0
 /// <summary>
 /// 删除Entity
 /// </summary>
 public bool Delete(T t)
 {
     return(dao.Delete(t));
 }
Exemple #11
0
 public void Delete(int FruitPicID)
 {
     _dal.Delete <T_FruitPic>(new T_FruitPic {
         FruitPicID = FruitPicID
     }, true);
 }
Exemple #12
0
 public void Delete(int StockinID)
 {
     _dal.Delete <T_Stockin>(new T_Stockin {
         StockinID = StockinID
     }, true);
 }
Exemple #13
0
 public void Delete(int ProductOrdersID)
 {
     _dal.Delete <T_ProductOrders>(new T_ProductOrders {
         ProductOrdersID = ProductOrdersID
     }, true);
 }