public void deleteCustomer(DBCustomer c) { if (c != null) { db.Customers.Attach(c); db.Customers.DeleteOnSubmit(c); db.SubmitChanges(); } }
public void addCustomer(DBCustomer c) { db.Customers.InsertOnSubmit(c); db.SubmitChanges(); }
public static FECustomer FromBaseCustomer(DBCustomer c) { return new FECustomer { Id = c.Id, FirstName = c.FirstName, LastName = c.LastName, Email = c.Email, Curp = c.Curp }; }
partial void DeleteCustomer(DBCustomer instance);
partial void UpdateCustomer(DBCustomer instance);
partial void InsertCustomer(DBCustomer instance);