/// <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(Vote vote) { base.AddObject("Votes", vote); }
/// <summary> /// Create a new Vote object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="googlePlusId">Initial value of the GooglePlusId property.</param> /// <param name="status">Initial value of the Status property.</param> public static Vote CreateVote(global::System.Int32 id, global::System.String createdDate, global::System.String googlePlusId, global::System.Int32 status) { Vote vote = new Vote(); vote.Id = id; vote.CreatedDate = createdDate; vote.GooglePlusId = googlePlusId; vote.Status = status; return vote; }