예제 #1
0
 public void deleteCustomer(DBCustomer c)
 {
     if (c != null)
     {
         db.Customers.Attach(c);
         db.Customers.DeleteOnSubmit(c);
         db.SubmitChanges();
     }
 }
예제 #2
0
 public void addCustomer(DBCustomer c)
 {
     db.Customers.InsertOnSubmit(c);
     db.SubmitChanges();
 }
예제 #3
0
 public static FECustomer FromBaseCustomer(DBCustomer c)
 {
     return new FECustomer { Id = c.Id, FirstName = c.FirstName, LastName = c.LastName, Email = c.Email, Curp = c.Curp };
 }
예제 #4
0
 partial void DeleteCustomer(DBCustomer instance);
예제 #5
0
 partial void UpdateCustomer(DBCustomer instance);
예제 #6
0
 partial void InsertCustomer(DBCustomer instance);