/// <summary> /// Deprecated Method for adding a new object to the EventVotes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEventVotes(EventVote eventVote) { base.AddObject("EventVotes", eventVote); }
/// <summary> /// Create a new EventVote object. /// </summary> /// <param name="eventId">Initial value of the EventId property.</param> /// <param name="userProfileId">Initial value of the UserProfileId property.</param> /// <param name="isUpVote">Initial value of the IsUpVote property.</param> public static EventVote CreateEventVote(global::System.Int32 eventId, global::System.Int32 userProfileId, global::System.Boolean isUpVote) { EventVote eventVote = new EventVote(); eventVote.EventId = eventId; eventVote.UserProfileId = userProfileId; eventVote.IsUpVote = isUpVote; return eventVote; }