Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ArticleRatings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToArticleRatings(ArticleRating articleRating)
 {
     base.AddObject("ArticleRatings", articleRating);
 }
Example #2
0
 /// <summary>
 /// Create a new ArticleRating object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="articleID">Initial value of the ArticleID property.</param>
 /// <param name="raterUserID">Initial value of the RaterUserID property.</param>
 /// <param name="rating">Initial value of the Rating property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 public static ArticleRating CreateArticleRating(global::System.Int64 id, global::System.Int64 articleID, global::System.Int64 raterUserID, global::System.Int32 rating, global::System.DateTime createDate)
 {
     ArticleRating articleRating = new ArticleRating();
     articleRating.ID = id;
     articleRating.ArticleID = articleID;
     articleRating.RaterUserID = raterUserID;
     articleRating.Rating = rating;
     articleRating.CreateDate = createDate;
     return articleRating;
 }