/// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSchoolAssociationWritable" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="EntryDate">The month, day, and year on which an individual enters and begins to receive instructional services in a school. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="SchoolYearTypeReference">SchoolYearTypeReference.</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="EntryGradeLevelDescriptor">The grade level or primary instructional level at which a student enters and receives services in a school or an educational institution during a given academic session. (required).</param>
 /// <param name="EntryTypeDescriptor">The process by which a student enters a school during a given academic session..</param>
 /// <param name="ExitWithdrawDate">The month, day, and year of the first day after the date of an individual&#39;s last attendance at a school (if known), the day on which an individual graduated, or the date on which it becomes known officially that an individual left school..</param>
 /// <param name="ExitWithdrawTypeDescriptor">The circumstances under which the student exited from membership in an educational institution..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="Ext">Ext.</param>
 public EdFiStudentSchoolAssociationWritable(string Id = default(string), DateTime?EntryDate = default(DateTime?), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference SchoolYearTypeReference = default(EdFiSchoolYearTypeReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string EntryGradeLevelDescriptor = default(string), string EntryTypeDescriptor = default(string), DateTime?ExitWithdrawDate = default(DateTime?), string ExitWithdrawTypeDescriptor = default(string), string Etag = default(string), StudentSchoolAssociationExtensionsWritable Ext = default(StudentSchoolAssociationExtensionsWritable))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "EntryDate" is required (not null)
     if (EntryDate == null)
     {
         throw new InvalidDataException("EntryDate is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.EntryDate = EntryDate;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     // to ensure "EntryGradeLevelDescriptor" is required (not null)
     if (EntryGradeLevelDescriptor == null)
     {
         throw new InvalidDataException("EntryGradeLevelDescriptor is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.EntryGradeLevelDescriptor = EntryGradeLevelDescriptor;
     }
     this.SchoolYearTypeReference    = SchoolYearTypeReference;
     this.EntryTypeDescriptor        = EntryTypeDescriptor;
     this.ExitWithdrawDate           = ExitWithdrawDate;
     this.ExitWithdrawTypeDescriptor = ExitWithdrawTypeDescriptor;
     this.Etag = Etag;
     this.Ext  = Ext;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSchoolAssociationWritable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="entryDate">The month, day, and year on which an individual enters and begins to receive instructional services in a school. (required).</param>
 /// <param name="calendarReference">calendarReference.</param>
 /// <param name="schoolReference">schoolReference (required).</param>
 /// <param name="schoolYearTypeReference">schoolYearTypeReference.</param>
 /// <param name="studentReference">studentReference (required).</param>
 /// <param name="entryGradeLevelDescriptor">The grade level or primary instructional level at which a student enters and receives services in a school or an educational institution during a given academic session. (required).</param>
 /// <param name="entryTypeDescriptor">The process by which a student enters a school during a given academic session..</param>
 /// <param name="exitWithdrawDate">The recorded exit or withdraw date for the student..</param>
 /// <param name="exitWithdrawTypeDescriptor">The circumstances under which the student exited from membership in an educational institution..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiStudentSchoolAssociationWritable(string id = default(string), DateTime?entryDate = default(DateTime?), EdFiCalendarReference calendarReference = default(EdFiCalendarReference), EdFiSchoolReference schoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference schoolYearTypeReference = default(EdFiSchoolYearTypeReference), EdFiStudentReference studentReference = default(EdFiStudentReference), string entryGradeLevelDescriptor = default(string), string entryTypeDescriptor = default(string), DateTime?exitWithdrawDate = default(DateTime?), string exitWithdrawTypeDescriptor = default(string), string etag = default(string), StudentSchoolAssociationExtensionsWritable ext = default(StudentSchoolAssociationExtensionsWritable))
 {
     // to ensure "entryDate" is required (not null)
     if (entryDate == null)
     {
         throw new InvalidDataException("entryDate is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.EntryDate = entryDate;
     }
     // to ensure "schoolReference" is required (not null)
     if (schoolReference == null)
     {
         throw new InvalidDataException("schoolReference is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.SchoolReference = schoolReference;
     }
     // to ensure "studentReference" is required (not null)
     if (studentReference == null)
     {
         throw new InvalidDataException("studentReference is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     // to ensure "entryGradeLevelDescriptor" is required (not null)
     if (entryGradeLevelDescriptor == null)
     {
         throw new InvalidDataException("entryGradeLevelDescriptor is a required property for EdFiStudentSchoolAssociationWritable and cannot be null");
     }
     else
     {
         this.EntryGradeLevelDescriptor = entryGradeLevelDescriptor;
     }
     this.Id = id;
     this.CalendarReference          = calendarReference;
     this.SchoolYearTypeReference    = schoolYearTypeReference;
     this.EntryTypeDescriptor        = entryTypeDescriptor;
     this.ExitWithdrawDate           = exitWithdrawDate;
     this.ExitWithdrawTypeDescriptor = exitWithdrawTypeDescriptor;
     this.Etag = etag;
     this.Ext  = ext;
 }