/// <summary> /// Create a new FactProductInventory object. /// </summary> /// <param name="productKey">Initial value of the ProductKey property.</param> /// <param name="dateKey">Initial value of the DateKey property.</param> /// <param name="movementDate">Initial value of the MovementDate property.</param> /// <param name="unitCost">Initial value of the UnitCost property.</param> /// <param name="unitsIn">Initial value of the UnitsIn property.</param> /// <param name="unitsOut">Initial value of the UnitsOut property.</param> /// <param name="unitsBalance">Initial value of the UnitsBalance property.</param> public static FactProductInventory CreateFactProductInventory(global::System.Int32 productKey, global::System.Int32 dateKey, global::System.DateTime movementDate, global::System.Decimal unitCost, global::System.Int32 unitsIn, global::System.Int32 unitsOut, global::System.Int32 unitsBalance) { FactProductInventory factProductInventory = new FactProductInventory(); factProductInventory.ProductKey = productKey; factProductInventory.DateKey = dateKey; factProductInventory.MovementDate = movementDate; factProductInventory.UnitCost = unitCost; factProductInventory.UnitsIn = unitsIn; factProductInventory.UnitsOut = unitsOut; factProductInventory.UnitsBalance = unitsBalance; return factProductInventory; }
/// <summary> /// Deprecated Method for adding a new object to the FactProductInventories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFactProductInventories(FactProductInventory factProductInventory) { base.AddObject("FactProductInventories", factProductInventory); }