/// <summary>
 /// Create a new UserPreference object.
 /// </summary>
 /// <param name="userPreferenceID">Initial value of the UserPreferenceID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="lastModified">Initial value of the LastModified property.</param>
 /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param>
 public static UserPreference CreateUserPreference(global::System.Decimal userPreferenceID, global::System.Decimal userID, global::System.DateTime lastModified, global::System.String lastModifiedBy)
 {
     UserPreference userPreference = new UserPreference();
     userPreference.UserPreferenceID = userPreferenceID;
     userPreference.UserID = userID;
     userPreference.LastModified = lastModified;
     userPreference.LastModifiedBy = lastModifiedBy;
     return userPreference;
 }
 /// <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);
 }