public static CDSParty CreateCDSParty(string partyNumber,
                                              int personBirthDay,
                                              int personAnniversaryYear,
                                              int personAnniversaryDay,
                                              int personBirthYear,
                                              int organizationNumOfEmployees,
                                              global::Microsoft.Dynamics.DataEntities.AAXCustomerV3 customer,
                                              global::Microsoft.Dynamics.DataEntities.CDSContactPersonV2 contactPerson)
        {
            CDSParty cDSParty = new CDSParty();

            cDSParty.PartyNumber                = partyNumber;
            cDSParty.PersonBirthDay             = personBirthDay;
            cDSParty.PersonAnniversaryYear      = personAnniversaryYear;
            cDSParty.PersonAnniversaryDay       = personAnniversaryDay;
            cDSParty.PersonBirthYear            = personBirthYear;
            cDSParty.OrganizationNumOfEmployees = organizationNumOfEmployees;
            if ((customer == null))
            {
                throw new global::System.ArgumentNullException("customer");
            }
            cDSParty.Customer = customer;
            if ((contactPerson == null))
            {
                throw new global::System.ArgumentNullException("contactPerson");
            }
            cDSParty.ContactPerson = contactPerson;
            return(cDSParty);
        }
 partial void OnContactPersonChanging(global::Microsoft.Dynamics.DataEntities.CDSContactPersonV2 value);