/// <summary> /// Create a new Rating object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="movieId">Initial value of the MovieId property.</param> /// <param name="rating1">Initial value of the Rating1 property.</param> public static Rating CreateRating(global::System.Int32 userId, global::System.Int32 movieId, global::System.Int32 rating1) { Rating rating = new Rating(); rating.UserId = userId; rating.MovieId = movieId; rating.Rating1 = rating1; return rating; }
/// <summary> /// Deprecated Method for adding a new object to the Rating EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRating(Rating rating) { base.AddObject("Rating", rating); }