/// <summary>
 /// Create a new CourtBookEntity object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="courtId">Initial value of the CourtId property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="endTime">Initial value of the EndTime property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="reserveRequired">Initial value of the ReserveRequired property.</param>
 /// <param name="clientId">Initial value of the ClientId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static CourtBookEntity CreateCourtBookEntity(global::System.Int32 id, global::System.Int32 courtId, global::System.DateTime startTime, global::System.DateTime endTime, global::System.Decimal price, global::System.Boolean reserveRequired, global::System.Int32 clientId, global::System.Int64 userId)
 {
     CourtBookEntity courtBookEntity = new CourtBookEntity();
     courtBookEntity.Id = id;
     courtBookEntity.CourtId = courtId;
     courtBookEntity.StartTime = startTime;
     courtBookEntity.EndTime = endTime;
     courtBookEntity.Price = price;
     courtBookEntity.ReserveRequired = reserveRequired;
     courtBookEntity.ClientId = clientId;
     courtBookEntity.UserId = userId;
     return courtBookEntity;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CourtBooks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCourtBooks(CourtBookEntity courtBookEntity)
 {
     base.AddObject("CourtBooks", courtBookEntity);
 }