/// <summary> /// Create a new Rating object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> /// <param name="ratedOn">Initial value of the RatedOn property.</param> /// <param name="comment">Initial value of the Comment property.</param> /// <param name="rating_Achievement">Initial value of the Rating_Achievement property.</param> /// <param name="rating_User">Initial value of the Rating_User property.</param> public static Rating CreateRating(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.DateTime ratedOn, global::System.String comment, global::System.Int32 rating_Achievement, global::System.Int32 rating_User) { Rating rating = new Rating(); rating.Id = id; rating.RowVersion = rowVersion; rating.RatedOn = ratedOn; rating.Comment = comment; rating.Rating_Achievement = rating_Achievement; rating.Rating_User = rating_User; return rating; }
/// <summary> /// Deprecated Method for adding a new object to the Ratings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRatings(Rating rating) { base.AddObject("Ratings", rating); }