/// <summary>
 /// Deprecated Method for adding a new object to the Leave_Type EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLeave_Type(Leave_Type leave_Type)
 {
     base.AddObject("Leave_Type", leave_Type);
 }
 /// <summary>
 /// Create a new Leave_Type object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="max_Leaves_Month">Initial value of the Max_Leaves_Month property.</param>
 /// <param name="max_Leaves_Year">Initial value of the Max_Leaves_Year property.</param>
 public static Leave_Type CreateLeave_Type(global::System.Byte id, global::System.String name, global::System.Byte max_Leaves_Month, global::System.Int16 max_Leaves_Year)
 {
     Leave_Type leave_Type = new Leave_Type();
     leave_Type.Id = id;
     leave_Type.Name = name;
     leave_Type.Max_Leaves_Month = max_Leaves_Month;
     leave_Type.Max_Leaves_Year = max_Leaves_Year;
     return leave_Type;
 }