public static CourseParticipant CreateCourseParticipant(string dataAreaId,
                                                                string courseId,
                                                                string personId,
                                                                global::System.DateTimeOffset registeredDate,
                                                                global::Microsoft.Dynamics.DataEntities.Person dirPerson,
                                                                global::Microsoft.Dynamics.DataEntities.CourseTable courseTable)
        {
            CourseParticipant courseParticipant = new CourseParticipant();

            courseParticipant.dataAreaId     = dataAreaId;
            courseParticipant.CourseId       = courseId;
            courseParticipant.PersonId       = personId;
            courseParticipant.RegisteredDate = registeredDate;
            if ((dirPerson == null))
            {
                throw new global::System.ArgumentNullException("dirPerson");
            }
            courseParticipant.DirPerson = dirPerson;
            if ((courseTable == null))
            {
                throw new global::System.ArgumentNullException("courseTable");
            }
            courseParticipant.CourseTable = courseTable;
            return(courseParticipant);
        }
        public static CourseLocationHotel CreateCourseLocationHotel(string dataAreaId,
                                                                    string courseId,
                                                                    string courseLocation,
                                                                    string hotel,
                                                                    global::Microsoft.Dynamics.DataEntities.CourseTable courseTable,
                                                                    global::Microsoft.Dynamics.DataEntities.CourseHotel courseHotel)
        {
            CourseLocationHotel courseLocationHotel = new CourseLocationHotel();

            courseLocationHotel.dataAreaId     = dataAreaId;
            courseLocationHotel.CourseId       = courseId;
            courseLocationHotel.CourseLocation = courseLocation;
            courseLocationHotel.Hotel          = hotel;
            if ((courseTable == null))
            {
                throw new global::System.ArgumentNullException("courseTable");
            }
            courseLocationHotel.CourseTable = courseTable;
            if ((courseHotel == null))
            {
                throw new global::System.ArgumentNullException("courseHotel");
            }
            courseLocationHotel.CourseHotel = courseHotel;
            return(courseLocationHotel);
        }
Ejemplo n.º 3
0
 partial void OnCourseChanging(global::Microsoft.Dynamics.DataEntities.CourseTable value);