Exemple #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Students EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStudents(Student student)
 {
     base.AddObject("Students", student);
 }
Exemple #2
0
 /// <summary>
 /// Create a new Student object.
 /// </summary>
 /// <param name="studentId">Initial value of the StudentId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="dateOfBirth">Initial value of the DateOfBirth property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="expectedGraduationYear">Initial value of the ExpectedGraduationYear property.</param>
 /// <param name="primaryDisabilityID">Initial value of the PrimaryDisabilityID property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param>
 /// <param name="lastModifiedOn">Initial value of the LastModifiedOn property.</param>
 /// <param name="current">Initial value of the Current property.</param>
 public static Student CreateStudent(global::System.Int32 studentId, global::System.Int32 userId, global::System.DateTime dateOfBirth, global::System.String firstName, global::System.String lastName, global::System.Int32 expectedGraduationYear, global::System.Int32 primaryDisabilityID, global::System.Int32 createdBy, global::System.DateTime createdOn, global::System.Int32 lastModifiedBy, global::System.DateTime lastModifiedOn, global::System.Boolean current)
 {
     Student student = new Student();
     student.StudentId = studentId;
     student.UserId = userId;
     student.DateOfBirth = dateOfBirth;
     student.FirstName = firstName;
     student.LastName = lastName;
     student.ExpectedGraduationYear = expectedGraduationYear;
     student.PrimaryDisabilityID = primaryDisabilityID;
     student.CreatedBy = createdBy;
     student.CreatedOn = createdOn;
     student.LastModifiedBy = lastModifiedBy;
     student.LastModifiedOn = lastModifiedOn;
     student.Current = current;
     return student;
 }