コード例 #1
0
 public void UpdateCustomerUsingSTE(Model.STE.Customer customer)
 {
     using (var ctx = new OrderIT.Model.STE.OrderITEntities()) {
         ctx.Companies.ApplyChanges(customer);
         ctx.SaveChanges();
     }
 }
コード例 #2
0
 /*ICustomerSTEService Interface*/
 public int CreateCustomerUsingSTE(Model.STE.Customer customer)
 {
     using (var ctx = new OrderIT.Model.STE.OrderITEntities())
     {
         ctx.Companies.ApplyChanges(customer);
         ctx.SaveChanges();
         return(customer.CompanyId);
     }
 }