コード例 #1
0
        public bool ProductDescriptionDelete(ProductDescription productdescription)
        {
            return Execute<bool>(dal =>
            {
                ProductDescription productdescriptionDelete = dal.ProductDescription.Where(x => x.ProductDescriptionID == productdescription.ProductDescriptionID).FirstOrDefault();
                if (productdescriptionDelete != null)
                {
                    dal.ProductDescription.DeleteOnSubmit(productdescriptionDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
コード例 #2
0
        public bool ProductDescriptionUpdate(ProductDescription productdescription)
        {
            return Execute<bool>(dal =>
            {
                ProductDescription productdescriptionUpdate = dal.ProductDescription.Where(x => x.ProductDescriptionID == productdescription.ProductDescriptionID).FirstOrDefault();
                if (productdescriptionUpdate != null)
                {
                    productdescriptionUpdate.ProductDescriptionID=productdescription.ProductDescriptionID;
            productdescriptionUpdate.Description=productdescription.Description;
            productdescriptionUpdate.rowguid=productdescription.rowguid;
            productdescriptionUpdate.ModifiedDate=productdescription.ModifiedDate;

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

            });
        }
コード例 #3
0
 partial void DeleteProductDescription(ProductDescription instance);
コード例 #4
0
 partial void UpdateProductDescription(ProductDescription instance);
コード例 #5
0
 partial void InsertProductDescription(ProductDescription instance);
コード例 #6
0
 public void ProductDescriptionUpdate(ProductDescription productdescription)
 {
     adventureWorks_BC.ProductDescriptionUpdate(productdescription);
 }
コード例 #7
0
 public void ProductDescriptionAdd(ProductDescription productdescription)
 {
     adventureWorks_BC.ProductDescriptionAdd(productdescription);
 }