示例#1
0
 internal void UpdateCustomerAddress(T_Customer_address address)
 {
     using (var db = new MEMSEntities())
     {
         db.Entry(address).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
示例#2
0
 internal void DelCustomerAddress(T_Customer_address address)
 {
     using (MEMSEntities db = new MEMSEntities())
     {
         db.Entry(address).State = EntityState.Deleted;
         db.SaveChanges();
     }
 }
示例#3
0
 internal void AddCustomerAddress(T_Customer_address address)
 {
     using (MEMSEntities db = new MEMSEntities())
     {
         db.T_Customer_address.Add(address);
         db.SaveChanges();
     }
 }
示例#4
0
 public void UpdCustomerAddress(T_Customer_address address)
 {
     try
     {
         ch = new CustomerHelper();
         ch.UpdateCustomerAddress(address);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }