/// <summary> /// Deprecated Method for adding a new object to the ContactType EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContactType(ContactType contactType) { base.AddObject("ContactType", contactType); }
/// <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; }