public static PersonLaborUnion CreatePersonLaborUnion(string partyNumber,
                                                              string unionId,
                                                              global::System.DateTimeOffset startDate,
                                                              global::System.DateTimeOffset endDate,
                                                              global::Microsoft.Dynamics.DataEntities.Person person,
                                                              global::Microsoft.Dynamics.DataEntities.Unions laborUnion)
        {
            PersonLaborUnion personLaborUnion = new PersonLaborUnion();

            personLaborUnion.PartyNumber = partyNumber;
            personLaborUnion.UnionId     = unionId;
            personLaborUnion.StartDate   = startDate;
            personLaborUnion.EndDate     = endDate;
            if ((person == null))
            {
                throw new global::System.ArgumentNullException("person");
            }
            personLaborUnion.Person = person;
            if ((laborUnion == null))
            {
                throw new global::System.ArgumentNullException("laborUnion");
            }
            personLaborUnion.LaborUnion = laborUnion;
            return(personLaborUnion);
        }
 partial void OnLaborUnionChanging(global::Microsoft.Dynamics.DataEntities.Unions value);
        public static LaborUnionAgreement CreateLaborUnionAgreement(string unionId, string agreementName, string legalEntityId, global::Microsoft.Dynamics.DataEntities.Unions laborUnion)
        {
            LaborUnionAgreement laborUnionAgreement = new LaborUnionAgreement();

            laborUnionAgreement.UnionId       = unionId;
            laborUnionAgreement.AgreementName = agreementName;
            laborUnionAgreement.LegalEntityId = legalEntityId;
            if ((laborUnion == null))
            {
                throw new global::System.ArgumentNullException("laborUnion");
            }
            laborUnionAgreement.LaborUnion = laborUnion;
            return(laborUnionAgreement);
        }