Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ContactType EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContactType(ContactType contactType)
 {
     base.AddObject("ContactType", contactType);
 }
Example #2
0
 /// <summary>
 /// Create a new ContactType object.
 /// </summary>
 /// <param name="contactTypeId">Initial value of the ContactTypeId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static ContactType CreateContactType(global::System.Int16 contactTypeId, global::System.String name)
 {
     ContactType contactType = new ContactType();
     contactType.ContactTypeId = contactTypeId;
     contactType.Name = name;
     return contactType;
 }