/// <summary>
 /// Deprecated Method for adding a new object to the TicketHistories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTicketHistories(TicketHistory ticketHistory)
 {
     base.AddObject("TicketHistories", ticketHistory);
 }
 /// <summary>
 /// Create a new TicketHistory object.
 /// </summary>
 /// <param name="ticketId">Initial value of the TicketId property.</param>
 /// <param name="doDate">Initial value of the DoDate property.</param>
 /// <param name="action">Initial value of the Action property.</param>
 /// <param name="departmentId">Initial value of the DepartmentId property.</param>
 public static TicketHistory CreateTicketHistory(global::System.Int32 ticketId, global::System.DateTime doDate, global::System.Int32 action, global::System.Guid departmentId)
 {
     TicketHistory ticketHistory = new TicketHistory();
     ticketHistory.TicketId = ticketId;
     ticketHistory.DoDate = doDate;
     ticketHistory.Action = action;
     ticketHistory.DepartmentId = departmentId;
     return ticketHistory;
 }