/// <summary>
 /// Deprecated Method for adding a new object to the UserPreferences EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserPreferences(UserPreference userPreference)
 {
     base.AddObject("UserPreferences", userPreference);
 }
 /// <summary>
 /// Create a new UserPreference object.
 /// </summary>
 /// <param name="userPrefID">Initial value of the UserPrefID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="bookingDays">Initial value of the BookingDays property.</param>
 /// <param name="slotDuration">Initial value of the SlotDuration property.</param>
 public static UserPreference CreateUserPreference(global::System.Int32 userPrefID, global::System.Int32 userID, global::System.Int32 bookingDays, global::System.Int32 slotDuration)
 {
     UserPreference userPreference = new UserPreference();
     userPreference.UserPrefID = userPrefID;
     userPreference.UserID = userID;
     userPreference.BookingDays = bookingDays;
     userPreference.SlotDuration = slotDuration;
     return userPreference;
 }