/// <summary>
 /// Create a new attendance object.
 /// </summary>
 /// <param name="attendanceDate">Initial value of the AttendanceDate property.</param>
 /// <param name="teacherId">Initial value of the teacherId property.</param>
 public static attendance Createattendance(global::System.DateTime attendanceDate, global::System.Int32 teacherId)
 {
     attendance attendance = new attendance();
     attendance.AttendanceDate = attendanceDate;
     attendance.teacherId = teacherId;
     return attendance;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the attendances EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToattendances(attendance attendance)
 {
     base.AddObject("attendances", attendance);
 }