Esempio n. 1
0
 public bool Delete(OrderDetailEntity entity)
 {
     try
     {
         _orderdetailRepository.Delete(entity);
         return true;
     }
     catch (Exception e)
     {
         _log.Error(e,"数据库操作出错");
         return false;
     }
 }
Esempio n. 2
0
 public OrderDetailEntity Create(OrderDetailEntity entity)
 {
     try
     {
         _orderdetailRepository.Insert(entity);
         return entity;
     }
     catch (Exception e)
     {
         _log.Error(e,"数据库操作出错");
         return null;
     }
 }