Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Customer object.
 /// </summary>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="version">Initial value of the Version property.</param>
 public static Customer CreateCustomer(global::System.Int32 customerId, global::System.String name, global::System.String firstName, global::System.Byte[] version)
 {
     Customer customer = new Customer();
     customer.CustomerId = customerId;
     customer.Name = name;
     customer.FirstName = firstName;
     customer.Version = version;
     return customer;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerSet(Customer customer)
 {
     base.AddObject("CustomerSet", customer);
 }