public static PersonCertificate CreatePersonCertificate(string partyNumber,
                                                                string certificateTypeId,
                                                                global::System.DateTimeOffset startDate,
                                                                global::System.DateTimeOffset endDate,
                                                                global::Microsoft.Dynamics.DataEntities.Person person,
                                                                global::Microsoft.Dynamics.DataEntities.CertificateType certificateType)
        {
            PersonCertificate personCertificate = new PersonCertificate();

            personCertificate.PartyNumber       = partyNumber;
            personCertificate.CertificateTypeId = certificateTypeId;
            personCertificate.StartDate         = startDate;
            personCertificate.EndDate           = endDate;
            if ((person == null))
            {
                throw new global::System.ArgumentNullException("person");
            }
            personCertificate.Person = person;
            if ((certificateType == null))
            {
                throw new global::System.ArgumentNullException("certificateType");
            }
            personCertificate.CertificateType = certificateType;
            return(personCertificate);
        }
 partial void OnCertificateTypeChanging(global::Microsoft.Dynamics.DataEntities.CertificateType value);
        public static JobPreferredCertificate CreateJobPreferredCertificate(string jobId, string certificateTypeId, global::Microsoft.Dynamics.DataEntities.CertificateType certificateType, global::Microsoft.Dynamics.DataEntities.Job job)
        {
            JobPreferredCertificate jobPreferredCertificate = new JobPreferredCertificate();

            jobPreferredCertificate.JobId             = jobId;
            jobPreferredCertificate.CertificateTypeId = certificateTypeId;
            if ((certificateType == null))
            {
                throw new global::System.ArgumentNullException("certificateType");
            }
            jobPreferredCertificate.CertificateType = certificateType;
            if ((job == null))
            {
                throw new global::System.ArgumentNullException("job");
            }
            jobPreferredCertificate.Job = job;
            return(jobPreferredCertificate);
        }
Esempio n. 4
0
        public static CourseTypeCertificateProfile CreateCourseTypeCertificateProfile(string courseTypeId, string certificateTypeId, global::Microsoft.Dynamics.DataEntities.CertificateType certificateType, global::Microsoft.Dynamics.DataEntities.CourseType courseType)
        {
            CourseTypeCertificateProfile courseTypeCertificateProfile = new CourseTypeCertificateProfile();

            courseTypeCertificateProfile.CourseTypeId      = courseTypeId;
            courseTypeCertificateProfile.CertificateTypeId = certificateTypeId;
            if ((certificateType == null))
            {
                throw new global::System.ArgumentNullException("certificateType");
            }
            courseTypeCertificateProfile.CertificateType = certificateType;
            if ((courseType == null))
            {
                throw new global::System.ArgumentNullException("courseType");
            }
            courseTypeCertificateProfile.CourseType = courseType;
            return(courseTypeCertificateProfile);
        }