/// <summary>
 /// Deprecated Method for adding a new object to the Trivias EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTrivias(Trivia trivia)
 {
     base.AddObject("Trivias", trivia);
 }
 /// <summary>
 /// Create a new Trivia object.
 /// </summary>
 /// <param name="triviaId">Initial value of the TriviaId property.</param>
 /// <param name="triviaText">Initial value of the TriviaText property.</param>
 /// <param name="dateAdded">Initial value of the DateAdded property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="filmId">Initial value of the FilmId property.</param>
 public static Trivia CreateTrivia(global::System.Int32 triviaId, global::System.String triviaText, global::System.DateTime dateAdded, global::System.Int32 userId, global::System.Int32 filmId)
 {
     Trivia trivia = new Trivia();
     trivia.TriviaId = triviaId;
     trivia.TriviaText = triviaText;
     trivia.DateAdded = dateAdded;
     trivia.UserId = userId;
     trivia.FilmId = filmId;
     return trivia;
 }