/// <summary> /// Deprecated Method for adding a new object to the Teachers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTeachers(Teacher teacher) { base.AddObject("Teachers", teacher); }
/// <summary> /// Create a new Teacher object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="tName">Initial value of the TName property.</param> /// <param name="tFullName">Initial value of the TFullName property.</param> /// <param name="tAlias">Initial value of the TAlias property.</param> public static Teacher CreateTeacher(global::System.Int32 id, global::System.String tName, global::System.String tFullName, global::System.String tAlias) { Teacher teacher = new Teacher(); teacher.ID = id; teacher.TName = tName; teacher.TFullName = tFullName; teacher.TAlias = tAlias; return teacher; }