/// <summary> /// Deprecated Method for adding a new object to the ContactTitles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContactTitles(ContactTitle contactTitle) { base.AddObject("ContactTitles", contactTitle); }
/// <summary> /// Create a new ContactTitle object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="title">Initial value of the Title property.</param> public static ContactTitle CreateContactTitle(global::System.Guid id, global::System.String title) { ContactTitle contactTitle = new ContactTitle(); contactTitle.ID = id; contactTitle.Title = title; return contactTitle; }
public ContactModel(Contact contact) { _contact = contact; if (_contact != null) { _contactTitle = _contact.ContactTitle; } }