public CustomerUser Get(Guid id) { try { CurtDevDataContext db = new CurtDevDataContext(); CustomerUser u = new CustomerUser(); u = db.CustomerUsers.Where(x => x.id.Equals(id)).FirstOrDefault<CustomerUser>(); return u; } catch (Exception e) { return new CustomerUser(); } }
private void detach_CustomerUsers(CustomerUser entity) { this.SendPropertyChanging(); entity.Customer = null; }
private void attach_CustomerUsers(CustomerUser entity) { this.SendPropertyChanging(); entity.Customer = this; }
partial void DeleteCustomerUser(CustomerUser instance);
partial void UpdateCustomerUser(CustomerUser instance);
partial void InsertCustomerUser(CustomerUser instance);