/// <summary> /// Deprecated Method for adding a new object to the ContactInfoes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContactInfoes(ContactInfo contactInfo) { base.AddObject("ContactInfoes", contactInfo); }
/// <summary> /// Create a new ContactInfo object. /// </summary> /// <param name="contactInfoId">Initial value of the ContactInfoId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="contactInfoTypeCode">Initial value of the ContactInfoTypeCode property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="showPhoneNumber">Initial value of the ShowPhoneNumber property.</param> /// <param name="showEmailAddress">Initial value of the ShowEmailAddress property.</param> public static ContactInfo CreateContactInfo(global::System.Int32 contactInfoId, global::System.Int32 userId, global::System.Int32 contactInfoTypeCode, global::System.String name, global::System.String email, global::System.Boolean showPhoneNumber, global::System.Boolean showEmailAddress) { ContactInfo contactInfo = new ContactInfo(); contactInfo.ContactInfoId = contactInfoId; contactInfo.UserId = userId; contactInfo.ContactInfoTypeCode = contactInfoTypeCode; contactInfo.Name = name; contactInfo.Email = email; contactInfo.ShowPhoneNumber = showPhoneNumber; contactInfo.ShowEmailAddress = showEmailAddress; return contactInfo; }