/// <summary> /// Deprecated Method for adding a new object to the ContactInfoSet EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContactInfoSet(ContactInfo contactInfo) { base.AddObject("ContactInfoSet", contactInfo); }
/// <summary> /// Called when [delete contact info command]. /// </summary> /// <param name="contactInfoToDelete">The contact info to delete.</param> public void OnDeleteContactInfoCommand(ContactInfo contactInfoToDelete) { ContactInfoSet.Remove(contactInfoToDelete); RaisePropertyChanged("ContactInfoSet"); }
/// <summary> /// Create a new ContactInfo object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="type">Initial value of the Type property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> public static ContactInfo CreateContactInfo(global::System.Guid id, global::System.String type, global::System.DateTime createdDate) { ContactInfo contactInfo = new ContactInfo(); contactInfo.Id = id; contactInfo.Type = type; contactInfo.CreatedDate = createdDate; return contactInfo; }