Inheritance: System.Data.Objects.DataClasses.EntityObject
コード例 #1
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);
 }
コード例 #2
0
 /// <summary>
 /// Create a new rental object.
 /// </summary>
 /// <param name="rental_id">Initial value of the rental_id property.</param>
 /// <param name="rental_date">Initial value of the rental_date property.</param>
 /// <param name="inventory_id">Initial value of the inventory_id property.</param>
 /// <param name="customer_id">Initial value of the customer_id property.</param>
 /// <param name="staff_id">Initial value of the staff_id property.</param>
 /// <param name="last_update">Initial value of the last_update property.</param>
 public static rental Createrental(global::System.Int32 rental_id, global::System.DateTime rental_date, global::System.Int32 inventory_id, global::System.Int32 customer_id, global::System.Byte staff_id, global::System.DateTime last_update)
 {
     rental rental = new rental();
     rental.rental_id = rental_id;
     rental.rental_date = rental_date;
     rental.inventory_id = inventory_id;
     rental.customer_id = customer_id;
     rental.staff_id = staff_id;
     rental.last_update = last_update;
     return rental;
 }