/// <summary>
 /// Deprecated Method for adding a new object to the Leaves EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLeaves(Leave leave)
 {
     base.AddObject("Leaves", leave);
 }
 /// <summary>
 /// Create a new Leave object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="leave_Type_Id">Initial value of the Leave_Type_Id property.</param>
 /// <param name="applier_Id">Initial value of the Applier_Id property.</param>
 /// <param name="from_Date">Initial value of the From_Date property.</param>
 /// <param name="from_Session">Initial value of the From_Session property.</param>
 /// <param name="to_Date">Initial value of the To_Date property.</param>
 /// <param name="to_Session">Initial value of the To_Session property.</param>
 /// <param name="reason">Initial value of the Reason property.</param>
 public static Leave CreateLeave(global::System.Int32 id, global::System.Byte leave_Type_Id, global::System.String applier_Id, global::System.DateTime from_Date, global::System.String from_Session, global::System.DateTime to_Date, global::System.String to_Session, global::System.String reason)
 {
     Leave leave = new Leave();
     leave.Id = id;
     leave.Leave_Type_Id = leave_Type_Id;
     leave.Applier_Id = applier_Id;
     leave.From_Date = from_Date;
     leave.From_Session = from_Session;
     leave.To_Date = to_Date;
     leave.To_Session = to_Session;
     leave.Reason = reason;
     return leave;
 }