/// <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="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="email">Initial value of the Email property.</param> /// <param name="phone">Initial value of the Phone property.</param> /// <param name="street">Initial value of the Street property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="zip">Initial value of the Zip property.</param> /// <param name="createdTime">Initial value of the CreatedTime property.</param> /// <param name="updatedTime">Initial value of the UpdatedTime property.</param> /// <param name="updatedBy">Initial value of the UpdatedBy property.</param> public static Student CreateStudent(global::System.Int32 id, global::System.String firstName, global::System.String lastName, global::System.String email, global::System.String phone, global::System.String street, global::System.String city, global::System.String state, global::System.String zip, global::System.DateTime createdTime, global::System.DateTime updatedTime, global::System.String updatedBy) { Student student = new Student(); student.Id = id; student.FirstName = firstName; student.LastName = lastName; student.Email = email; student.Phone = phone; student.Street = street; student.City = city; student.State = state; student.Zip = zip; student.CreatedTime = createdTime; student.UpdatedTime = updatedTime; student.UpdatedBy = updatedBy; return student; }