예제 #1
0
 /// <summary>
 /// Create a new Contact object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static Contact CreateContact(global::System.Int64 id, global::System.String email, global::System.Int64 userId)
 {
     Contact contact = new Contact();
     contact.Id = id;
     contact.Email = email;
     contact.UserId = userId;
     return contact;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Contacts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContacts(Contact contact)
 {
     base.AddObject("Contacts", contact);
 }