/// <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); }
/// <summary> /// Create a new Storage object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="storageNumber">Initial value of the StorageNumber property.</param> /// <param name="price">Initial value of the Price property.</param> /// <param name="customer_Storage">Initial value of the Customer_Storage property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static Storage CreateStorage(global::System.Int32 id, global::System.String storageNumber, global::System.Decimal price, global::System.Int32 customer_Storage, global::System.Byte[] rowVersion) { Storage storage = new Storage(); storage.Id = id; storage.StorageNumber = storageNumber; storage.Price = price; storage.Customer_Storage = customer_Storage; storage.RowVersion = rowVersion; return storage; }