/// <summary> /// Deprecated Method for adding a new object to the ContactInfos EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContactInfos(ContactInfo contactInfo) { base.AddObject("ContactInfos", 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="type">Initial value of the Type property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="displayPhoneNumber">Initial value of the DisplayPhoneNumber property.</param> public static ContactInfo CreateContactInfo(global::System.Int64 contactInfoId, global::System.Guid userId, global::System.String type, global::System.String name, global::System.String email, global::System.Boolean displayPhoneNumber) { ContactInfo contactInfo = new ContactInfo(); contactInfo.ContactInfoId = contactInfoId; contactInfo.UserId = userId; contactInfo.Type = type; contactInfo.Name = name; contactInfo.Email = email; contactInfo.DisplayPhoneNumber = displayPhoneNumber; return contactInfo; }