Example #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);
 }
Example #2
0
 /// <summary>
 /// Create a new Student object.
 /// </summary>
 /// <param name="studentId">Initial value of the StudentId property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="rankId">Initial value of the RankId property.</param>
 /// <param name="gender">Initial value of the Gender property.</param>
 /// <param name="schoolId">Initial value of the SchoolId property.</param>
 /// <param name="isSchoolOwner">Initial value of the IsSchoolOwner property.</param>
 public static Student CreateStudent(global::System.Int32 studentId, global::System.String firstName, global::System.String lastName, global::System.Int32 rankId, global::System.String gender, global::System.Int32 schoolId, global::System.Boolean isSchoolOwner)
 {
     Student student = new Student();
     student.StudentId = studentId;
     student.FirstName = firstName;
     student.LastName = lastName;
     student.RankId = rankId;
     student.Gender = gender;
     student.SchoolId = schoolId;
     student.IsSchoolOwner = isSchoolOwner;
     return student;
 }