Exemple #1
2
 /// <summary>
 /// Create a new Rental object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 /// <param name="vehicleId">Initial value of the VehicleId property.</param>
 /// <param name="rentalDate">Initial value of the RentalDate property.</param>
 /// <param name="cost">Initial value of the Cost property.</param>
 public static Rental CreateRental(global::System.Int32 id, global::System.Int32 customerId, global::System.String vehicleId, global::System.DateTime rentalDate, global::System.Single cost)
 {
     Rental rental = new Rental();
     rental.Id = id;
     rental.CustomerId = customerId;
     rental.VehicleId = vehicleId;
     rental.RentalDate = rentalDate;
     rental.Cost = cost;
     return rental;
 }
Exemple #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Rentals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRentals(Rental rental)
 {
     base.AddObject("Rentals", rental);
 }