/// <summary> /// Deprecated Method for adding a new object to the MaterialsFromStocks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMaterialsFromStocks(MaterialsFromStock materialsFromStock) { base.AddObject("MaterialsFromStocks", materialsFromStock); }
/// <summary> /// Create a new MaterialsFromStock object. /// </summary> /// <param name="materialsFromStockID">Initial value of the MaterialsFromStockID property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="issuedDate">Initial value of the IssuedDate property.</param> /// <param name="materialStockID">Initial value of the MaterialStockID property.</param> /// <param name="fromOrderID">Initial value of the FromOrderID property.</param> /// <param name="toOrderID">Initial value of the ToOrderID property.</param> public static MaterialsFromStock CreateMaterialsFromStock(global::System.Int64 materialsFromStockID, global::System.Decimal quantity, global::System.DateTime issuedDate, global::System.Int64 materialStockID, global::System.Int64 fromOrderID, global::System.Int64 toOrderID) { MaterialsFromStock materialsFromStock = new MaterialsFromStock(); materialsFromStock.MaterialsFromStockID = materialsFromStockID; materialsFromStock.Quantity = quantity; materialsFromStock.IssuedDate = issuedDate; materialsFromStock.MaterialStockID = materialStockID; materialsFromStock.FromOrderID = fromOrderID; materialsFromStock.ToOrderID = toOrderID; return materialsFromStock; }