Ejemplo n.º 1
0
 partial void DeleteProductHeader(ProductHeader instance);
Ejemplo n.º 2
0
 partial void UpdateProductHeader(ProductHeader instance);
Ejemplo n.º 3
0
        public void UpdateHeader(ProductHeaderModel model)
        {
            try
            {
                ProductHeader table = new ProductHeader();
                using (VenturadaDataContext vdc = new VenturadaDataContext())
                {
                    table = vdc.ProductHeaders.Single(a => a.ProductLabelId == model.ProductLabelId);
                    table.ProductTableTitleDescription = model.ProductTableTitleDescription;
                    vdc.SubmitChanges();
                }
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
Ejemplo n.º 4
0
 partial void InsertProductHeader(ProductHeader instance);
Ejemplo n.º 5
0
        public void InsertProductHeader(ProductHeaderModel model)
        {
            try
            {
                using (VenturadaDataContext vdc = new VenturadaDataContext())
                {
                    ProductHeader table = new ProductHeader();
                    table.ProductTableTitleDescription = model.ProductTableTitleDescription;
                    table.ProductCategoryId = model.ProductCategoryId;

                    vdc.ProductHeaders.InsertOnSubmit(table);
                    vdc.SubmitChanges();
                }
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }