public virtual void Remove(CustomerSetup user)
 {
     try
     {
         db.CustomerSetups.DeleteOnSubmit(user);
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
 public virtual void Create(CustomerSetup user)
 {
     try
     {
         this.db.CustomerSetups.InsertOnSubmit(user);
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
 public virtual void Update(CustomerSetup user)
 {
     try
     {
         CustomerSetup userOld = this.GetById(user.ID);
         userOld = user;
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
 public virtual int Delete(CustomerSetup user)
 {
     try
     {
         //user.IsDelete = true;
         db.SubmitChanges();
         return 0;
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
 partial void DeleteCustomerSetup(CustomerSetup instance);
 partial void UpdateCustomerSetup(CustomerSetup instance);
 partial void InsertCustomerSetup(CustomerSetup instance);
	private void detach_CustomerSetups(CustomerSetup entity)
	{
		this.SendPropertyChanging();
		entity.Customer = null;
	}
	private void attach_CustomerSetups(CustomerSetup entity)
	{
		this.SendPropertyChanging();
		entity.Customer = this;
	}