/// <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); }
/// <summary> /// Create a new Student object. /// </summary> /// <param name="studentId">Initial value of the StudentId property.</param> /// <param name="studentGuid">Initial value of the StudentGuid property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="dateCreated">Initial value of the DateCreated property.</param> /// <param name="dateModified">Initial value of the DateModified property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param> /// <param name="active">Initial value of the Active property.</param> public static Student CreateStudent(global::System.Int32 studentId, global::System.Guid studentGuid, global::System.String firstName, global::System.String lastName, global::System.DateTime dateCreated, global::System.DateTime dateModified, global::System.String createdBy, global::System.String modifiedBy, global::System.Boolean active) { Student student = new Student(); student.StudentId = studentId; student.StudentGuid = studentGuid; student.FirstName = firstName; student.LastName = lastName; student.DateCreated = dateCreated; student.DateModified = dateModified; student.CreatedBy = createdBy; student.ModifiedBy = modifiedBy; student.Active = active; return student; }