示例#1
0
        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();
            }
        }
示例#2
0
		private void detach_CustomerUsers(CustomerUser entity)
		{
			this.SendPropertyChanging();
			entity.Customer = null;
		}
示例#3
0
		private void attach_CustomerUsers(CustomerUser entity)
		{
			this.SendPropertyChanging();
			entity.Customer = this;
		}
示例#4
0
 partial void DeleteCustomerUser(CustomerUser instance);
示例#5
0
 partial void UpdateCustomerUser(CustomerUser instance);
示例#6
0
 partial void InsertCustomerUser(CustomerUser instance);