Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Instructors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInstructors(Instructor instructor)
 {
     base.AddObject("Instructors", instructor);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Instructor 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="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 Instructor CreateInstructor(global::System.Int32 id, global::System.String firstName, global::System.String lastName, global::System.DateTime createdTime, global::System.DateTime updatedTime, global::System.String updatedBy)
 {
     Instructor instructor = new Instructor();
     instructor.Id = id;
     instructor.FirstName = firstName;
     instructor.LastName = lastName;
     instructor.CreatedTime = createdTime;
     instructor.UpdatedTime = updatedTime;
     instructor.UpdatedBy = updatedBy;
     return instructor;
 }