Esempio n. 1
0
 /// <summary>
 /// Create a new Rating object.
 /// </summary>
 /// <param name="ratingId">Initial value of the RatingId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="presentationId">Initial value of the PresentationId property.</param>
 /// <param name="value">Initial value of the Value property.</param>
 public static Rating CreateRating(global::System.Guid ratingId, global::System.Guid userId, global::System.Guid presentationId, global::System.Int32 value)
 {
     Rating rating = new Rating();
     rating.RatingId = ratingId;
     rating.UserId = userId;
     rating.PresentationId = presentationId;
     rating.Value = value;
     return rating;
 }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Ratings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRatings(Rating rating)
 {
     base.AddObject("Ratings", rating);
 }