/// <summary> /// Create a new Votes object. /// </summary> /// <param name="voteId">Initial value of the VoteId property.</param> /// <param name="jokeId">Initial value of the JokeId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="voteType">Initial value of the VoteType property.</param> public static Votes CreateVotes(global::System.Int32 voteId, global::System.Int32 jokeId, global::System.Int64 userId, global::System.Boolean voteType) { Votes votes = new Votes(); votes.VoteId = voteId; votes.JokeId = jokeId; votes.UserId = userId; votes.VoteType = voteType; return votes; }
/// <summary> /// Deprecated Method for adding a new object to the Votes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVotes(Votes votes) { base.AddObject("Votes", votes); }