Наследование: System.Data.Objects.DataClasses.EntityObject
Пример #1
0
 /// <summary>
 /// Create a new CustomerRentedItem object.
 /// </summary>
 /// <param name="mediaId">Initial value of the MediaId property.</param>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 /// <param name="customerName">Initial value of the CustomerName property.</param>
 /// <param name="mediaTitle">Initial value of the MediaTitle property.</param>
 /// <param name="dueDate">Initial value of the DueDate property.</param>
 public static CustomerRentedItem CreateCustomerRentedItem(global::System.Guid mediaId, global::System.Guid customerId, global::System.String customerName, global::System.String mediaTitle, global::System.DateTime dueDate)
 {
     CustomerRentedItem customerRentedItem = new CustomerRentedItem();
     customerRentedItem.MediaId = mediaId;
     customerRentedItem.CustomerId = customerId;
     customerRentedItem.CustomerName = customerName;
     customerRentedItem.MediaTitle = mediaTitle;
     customerRentedItem.DueDate = dueDate;
     return customerRentedItem;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerRentedItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerRentedItems(CustomerRentedItem customerRentedItem)
 {
     base.AddObject("CustomerRentedItems", customerRentedItem);
 }