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);
        }
 partial void OnCourseHotelChanging(global::Microsoft.Dynamics.DataEntities.CourseHotel value);