Inheritance: System.Data.Objects.DataClasses.EntityObject
Exemplo n.º 1
0
 /// <summary>
 /// Create a new CustomerItem object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="canRent">Initial value of the CanRent property.</param>
 /// <param name="canReturn">Initial value of the CanReturn property.</param>
 public static CustomerItem CreateCustomerItem(global::System.Guid id, global::System.String name, global::System.Boolean canRent, global::System.Boolean canReturn)
 {
     CustomerItem customerItem = new CustomerItem();
     customerItem.Id = id;
     customerItem.Name = name;
     customerItem.CanRent = canRent;
     customerItem.CanReturn = canReturn;
     return customerItem;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerItems(CustomerItem customerItem)
 {
     base.AddObject("CustomerItems", customerItem);
 }