コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductionMfgrs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductionMfgrs(ProductionMfgr productionMfgr)
 {
     base.AddObject("ProductionMfgrs", productionMfgr);
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
        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());
        }