/// <summary> /// Deprecated Method for adding a new object to the ProductionMfgrs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductionMfgrs(ProductionMfgr productionMfgr) { base.AddObject("ProductionMfgrs", productionMfgr); }
/// <summary> /// Create a new ProductionMfgr object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="cstVendorID">Initial value of the CstVendorID property.</param> public static ProductionMfgr CreateProductionMfgr(global::System.Decimal id, global::System.String code, global::System.String name, global::System.String cstVendorID) { ProductionMfgr productionMfgr = new ProductionMfgr(); productionMfgr.ID = id; productionMfgr.Code = code; productionMfgr.Name = name; productionMfgr.CstVendorID = cstVendorID; return productionMfgr; }
public ActionResult _InsertMfgr() { PrdnMfgrViewModel m = new PrdnMfgrViewModel(); CST.Prdn.Data.ProductionMfgr newMfgr = new CST.Prdn.Data.ProductionMfgr(); if (TryUpdateModel(newMfgr)) { PrdnDBContext.ProductionMfgrs.AddObject(newMfgr); PrdnDBContext.SaveChanges(); } return View(MfgrGridList()); }