/// <summary> /// Create a new Storage object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="stockId">Initial value of the StockId property.</param> /// <param name="productId">Initial value of the ProductId property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="lastModifiedDate">Initial value of the LastModifiedDate property.</param> /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param> public static Storage CreateStorage(global::System.Int32 id, global::System.Int32 stockId, global::System.Int32 productId, global::System.Int32 quantity, global::System.Int32 status, global::System.DateTime createdDate, global::System.DateTime lastModifiedDate, global::System.Int32 lastModifiedBy) { Storage storage = new Storage(); storage.Id = id; storage.StockId = stockId; storage.ProductId = productId; storage.Quantity = quantity; storage.Status = status; storage.CreatedDate = createdDate; storage.LastModifiedDate = lastModifiedDate; storage.LastModifiedBy = lastModifiedBy; return storage; }
/// <summary> /// Deprecated Method for adding a new object to the Storages EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStorages(Storage storage) { base.AddObject("Storages", storage); }