/// <summary> /// Deprecated Method for adding a new object to the Instructors EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToInstructors(Instructor instructor) { base.AddObject("Instructors", instructor); }
/// <summary> /// Create a new Instructor object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="fName">Initial value of the FName property.</param> /// <param name="lName">Initial value of the LName property.</param> /// <param name="hireDate">Initial value of the HireDate property.</param> public static Instructor CreateInstructor(global::System.Int32 id, global::System.String fName, global::System.String lName, global::System.DateTime hireDate) { Instructor instructor = new Instructor(); instructor.Id = id; instructor.FName = fName; instructor.LName = lName; instructor.HireDate = hireDate; return instructor; }