/// <summary> /// Create a new PollOptions object. /// </summary> /// <param name="optionGuid">Initial value of the OptionGuid property.</param> /// <param name="pollGuid">Initial value of the PollGuid property.</param> /// <param name="answer">Initial value of the Answer property.</param> /// <param name="votes">Initial value of the Votes property.</param> /// <param name="order">Initial value of the Order property.</param> public static PollOptions CreatePollOptions(global::System.Guid optionGuid, global::System.Guid pollGuid, global::System.String answer, global::System.Int32 votes, global::System.Int32 order) { PollOptions pollOptions = new PollOptions(); pollOptions.OptionGuid = optionGuid; pollOptions.PollGuid = pollGuid; pollOptions.Answer = answer; pollOptions.Votes = votes; pollOptions.Order = order; return pollOptions; }
/// <summary> /// Deprecated Method for adding a new object to the PollOptions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPollOptions(PollOptions pollOptions) { base.AddObject("PollOptions", pollOptions); }