コード例 #1
0
 public void Delete(StockEntities entitie)
 {
     db.DeleteProduct(entitie.ProductCode);
     db.SaveChanges();
 }
コード例 #2
0
 public void UpdateElement(StockEntities entitie)
 {
     db.UpdateProduct(entitie.ProductCode, entitie.NameProduct, entitie.ProductDescription, entitie.ProductBrand,
                      entitie.ProductModel, entitie.ProductSerial, entitie.ProductStatus);
     db.SaveChanges();
 }
コード例 #3
0
        DataLayer.Entities.TechnologicalWarehouseEntities1 db = new Entities.TechnologicalWarehouseEntities1(); //  Instancia del modelo de EF

        public void Save(StockEntities entitie)
        {
            db.InsertProduct(entitie.ProductCode, entitie.NameProduct, entitie.ProductDescription, entitie.ProductBrand,
                             entitie.ProductModel, entitie.ProductSerial, entitie.ProductStatus);
            db.SaveChanges();
        }