/// <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(Ratings ratings) { base.AddObject("Ratings", ratings); }
/// <summary> /// Create a new Ratings object. /// </summary> /// <param name="ratingID">Initial value of the RatingID property.</param> /// <param name="dishID">Initial value of the DishID property.</param> /// <param name="customerID">Initial value of the CustomerID property.</param> public static Ratings CreateRatings(global::System.Int32 ratingID, global::System.Int32 dishID, global::System.Int32 customerID) { Ratings ratings = new Ratings(); ratings.RatingID = ratingID; ratings.DishID = dishID; ratings.CustomerID = customerID; return ratings; }