/// <summary> /// Deprecated Method for adding a new object to the Vote EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVote(Vote vote) { base.AddObject("Vote", vote); }
/// <summary> /// Create a new Vote object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="time">Initial value of the Time property.</param> /// <param name="presentationId">Initial value of the PresentationId property.</param> /// <param name="type">Initial value of the Type property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> public static Vote CreateVote(global::System.Int32 id, global::System.Int32 userId, global::System.TimeSpan time, global::System.Int32 presentationId, global::System.Boolean type, global::System.Boolean isActive) { Vote vote = new Vote(); vote.Id = id; vote.UserId = userId; vote.Time = time; vote.PresentationId = presentationId; vote.Type = type; vote.IsActive = isActive; return vote; }