public bool ProductModelIllustrationDelete(ProductModelIllustration productmodelillustration)
        {
            return Execute<bool>(dal =>
            {
                ProductModelIllustration productmodelillustrationDelete = dal.ProductModelIllustration.Where(x => x.ProductModelID == productmodelillustration.ProductModelID).FirstOrDefault();
                if (productmodelillustrationDelete != null)
                {
                    dal.ProductModelIllustration.DeleteOnSubmit(productmodelillustrationDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
        public bool ProductModelIllustrationUpdate(ProductModelIllustration productmodelillustration)
        {
            return Execute<bool>(dal =>
            {
                ProductModelIllustration productmodelillustrationUpdate = dal.ProductModelIllustration.Where(x => x.ProductModelID == productmodelillustration.ProductModelID).FirstOrDefault();
                if (productmodelillustrationUpdate != null)
                {
                    productmodelillustrationUpdate.ProductModelID=productmodelillustration.ProductModelID;
            productmodelillustrationUpdate.IllustrationID=productmodelillustration.IllustrationID;
            productmodelillustrationUpdate.ModifiedDate=productmodelillustration.ModifiedDate;

                    dal.SubmitChanges();
                    return  true;
                }
                return false;

            });
        }
		private void detach_ProductModelIllustrations(ProductModelIllustration entity)
		{
			this.SendPropertyChanging();
			entity.Illustration1 = null;
		}
 partial void DeleteProductModelIllustration(ProductModelIllustration instance);
 partial void UpdateProductModelIllustration(ProductModelIllustration instance);
 partial void InsertProductModelIllustration(ProductModelIllustration instance);
		private void attach_ProductModelIllustrations(ProductModelIllustration entity)
		{
			this.SendPropertyChanging();
			entity.Illustration = this;
		}
 public void ProductModelIllustrationUpdate(ProductModelIllustration productmodelillustration)
 {
     adventureWorks_BC.ProductModelIllustrationUpdate(productmodelillustration);
 }