/// <summary> /// Create a new ContactInfoCT object. /// </summary> /// <param name="address">Initial value of the Address property.</param> /// <param name="homePhone">Initial value of the HomePhone property.</param> public static ContactInfoCT CreateContactInfoCT(AddressCT address, global::System.String homePhone) { ContactInfoCT contactInfoCT = new ContactInfoCT(); contactInfoCT.Address = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address"); contactInfoCT.HomePhone = homePhone; return(contactInfoCT); }
partial void OnContactInfoChanging(ContactInfoCT value);
/// <summary> /// Create a new EmployeeWithCT object. /// </summary> /// <param name="employeeID">Initial value of the EmployeeID property.</param> /// <param name="contactInfo">Initial value of the ContactInfo property.</param> public static EmployeeWithCT CreateEmployeeWithCT(global::System.Int32 employeeID, ContactInfoCT contactInfo) { EmployeeWithCT employeeWithCT = new EmployeeWithCT(); employeeWithCT.EmployeeID = employeeID; employeeWithCT.ContactInfo = StructuralObject.VerifyComplexObjectIsNotNull(contactInfo, "ContactInfo"); return employeeWithCT; }
/// <summary> /// Create a new ContactInfoCT object. /// </summary> /// <param name="address">Initial value of the Address property.</param> /// <param name="homePhone">Initial value of the HomePhone property.</param> public static ContactInfoCT CreateContactInfoCT(AddressCT address, global::System.String homePhone) { ContactInfoCT contactInfoCT = new ContactInfoCT(); contactInfoCT.Address = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address"); contactInfoCT.HomePhone = homePhone; return contactInfoCT; }
/// <summary> /// Create a new EmployeeWithCT object. /// </summary> /// <param name="employeeID">Initial value of the EmployeeID property.</param> /// <param name="contactInfo">Initial value of the ContactInfo property.</param> public static EmployeeWithCT CreateEmployeeWithCT(global::System.Int32 employeeID, ContactInfoCT contactInfo) { EmployeeWithCT employeeWithCT = new EmployeeWithCT(); employeeWithCT.EmployeeID = employeeID; employeeWithCT.ContactInfo = StructuralObject.VerifyComplexObjectIsNotNull(contactInfo, "ContactInfo"); return(employeeWithCT); }