/// <summary>
        /// Create a new CourtDate object.
        /// </summary>
        /// <param name="appointmentId">Initial value of the AppointmentId property.</param>
        /// <param name="appointment">Initial value of the Appointment property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="lawyerId">Initial value of the LawyerId property.</param>
        public static CourtDate CreateCourtDate(global::System.Int32 appointmentId, global::System.DateTime appointment, global::System.String name, global::System.Int32 lawyerId)
        {
            CourtDate courtDate = new CourtDate();

            courtDate.AppointmentId = appointmentId;
            courtDate.Appointment   = appointment;
            courtDate.Name          = name;
            courtDate.LawyerId      = lawyerId;
            return(courtDate);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the CourtDates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCourtDates(CourtDate courtDate)
 {
     base.AddObject("CourtDates", courtDate);
 }