예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ContactTitles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContactTitles(ContactTitle contactTitle)
 {
     base.AddObject("ContactTitles", contactTitle);
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
        public ContactModel(Contact contact)
        {
            _contact = contact;

            if (_contact != null)
            {
                _contactTitle = _contact.ContactTitle;
            }
        }