/// <summary> /// Deprecated Method for adding a new object to the StockCheckDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStockCheckDetails(StockCheckDetail stockCheckDetail) { base.AddObject("StockCheckDetails", stockCheckDetail); }
/// <summary> /// Create a new StockCheckDetail object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="stockCheckDetails_StockCheck">Initial value of the StockCheckDetails_StockCheck property.</param> /// <param name="unitsExpected">Initial value of the UnitsExpected property.</param> /// <param name="unitsFound">Initial value of the UnitsFound property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static StockCheckDetail CreateStockCheckDetail(global::System.Int32 id, global::System.Int32 stockCheckDetails_StockCheck, global::System.Int32 unitsExpected, global::System.Int32 unitsFound, global::System.Byte[] rowVersion) { StockCheckDetail stockCheckDetail = new StockCheckDetail(); stockCheckDetail.Id = id; stockCheckDetail.StockCheckDetails_StockCheck = stockCheckDetails_StockCheck; stockCheckDetail.UnitsExpected = unitsExpected; stockCheckDetail.UnitsFound = unitsFound; stockCheckDetail.RowVersion = rowVersion; return stockCheckDetail; }