Exemplo n.º 1
0
 /// <summary>
 /// Create a new Storage object.
 /// </summary>
 /// <param name="rentalItemId">Initial value of the RentalItemId property.</param>
 /// <param name="warehouseId">Initial value of the WarehouseId property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="maximunDiscount">Initial value of the MaximunDiscount property.</param>
 /// <param name="minimunCount">Initial value of the MinimunCount property.</param>
 /// <param name="available">Initial value of the Available property.</param>
 public static Storage CreateStorage(global::System.Int32 rentalItemId, global::System.Int32 warehouseId, global::System.Decimal quantity, global::System.Int32 maximunDiscount, global::System.Int32 minimunCount, global::System.Decimal available)
 {
     Storage storage = new Storage();
     storage.RentalItemId = rentalItemId;
     storage.WarehouseId = warehouseId;
     storage.Quantity = quantity;
     storage.MaximunDiscount = maximunDiscount;
     storage.MinimunCount = minimunCount;
     storage.Available = available;
     return storage;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Storages EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStorages(Storage storage)
 {
     base.AddObject("Storages", storage);
 }