/// <summary> /// Create a new Stock object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="cityId">Initial value of the CityId property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="lastModifiedDate">Initial value of the LastModifiedDate property.</param> /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param> public static Stock CreateStock(global::System.Int32 id, global::System.String name, global::System.String code, global::System.Int32 cityId, global::System.Int32 status, global::System.DateTime lastModifiedDate, global::System.Int32 lastModifiedBy) { Stock stock = new Stock(); stock.Id = id; stock.Name = name; stock.Code = code; stock.CityId = cityId; stock.Status = status; stock.LastModifiedDate = lastModifiedDate; stock.LastModifiedBy = lastModifiedBy; return stock; }
/// <summary> /// Deprecated Method for adding a new object to the Stocks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStocks(Stock stock) { base.AddObject("Stocks", stock); }