/// <summary> /// Create a new Student object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="dateOfBirth">Initial value of the DateOfBirth property.</param> /// <param name="classId">Initial value of the ClassId property.</param> public static Student CreateStudent(global::System.Int32 id, global::System.String firstName, global::System.String lastName, global::System.DateTime dateOfBirth, global::System.Int32 classId) { Student student = new Student(); student.Id = id; student.FirstName = firstName; student.LastName = lastName; student.DateOfBirth = dateOfBirth; student.ClassId = classId; return student; }
/// <summary> /// Deprecated Method for adding a new object to the Students EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStudents(Student student) { base.AddObject("Students", student); }