Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerContacts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerContacts(CustomerContact customerContact)
 {
     base.AddObject("CustomerContacts", customerContact);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new CustomerContact object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="job">Initial value of the Job property.</param>
 /// <param name="personId">Initial value of the PersonId property.</param>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 public static CustomerContact CreateCustomerContact(global::System.Int32 id, global::System.String job, global::System.Int32 personId, global::System.Int32 customerId, global::System.String email)
 {
     CustomerContact customerContact = new CustomerContact();
     customerContact.Id = id;
     customerContact.Job = job;
     customerContact.PersonId = personId;
     customerContact.CustomerId = customerId;
     customerContact.Email = email;
     return customerContact;
 }