Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductionLocations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductionLocations(ProductionLocation productionLocation)
 {
     base.AddObject("ProductionLocations", productionLocation);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new ProductionLocation 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="mfgrID">Initial value of the MfgrID property.</param>
 public static ProductionLocation CreateProductionLocation(global::System.Decimal id, global::System.String code, global::System.String name, global::System.Decimal mfgrID)
 {
     ProductionLocation productionLocation = new ProductionLocation();
     productionLocation.ID = id;
     productionLocation.Code = code;
     productionLocation.Name = name;
     productionLocation.MfgrID = mfgrID;
     return productionLocation;
 }
        public ActionResult _InsertLocation()
        {
            CST.Prdn.Data.ProductionLocation newLocation = new CST.Prdn.Data.ProductionLocation();

            if (TryUpdateModel(newLocation))
            {
                PrdnDBContext.ProductionLocations.AddObject(newLocation);
                PrdnDBContext.SaveChanges();
            }

            return View(LocGridList(newLocation.MfgrID));
        }