/// <summary> /// Create a new Answer object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="questionID">Initial value of the QuestionID property.</param> /// <param name="ordinalNumber">Initial value of the OrdinalNumber property.</param> /// <param name="text">Initial value of the Text property.</param> /// <param name="significance">Initial value of the Significance property.</param> /// <param name="group">Initial value of the Group property.</param> /// <param name="canceledMark">Initial value of the CanceledMark property.</param> public static Answer CreateAnswer(global::System.Int32 id, global::System.Int32 questionID, global::System.Int32 ordinalNumber, global::System.String text, global::System.Int32 significance, global::System.String group, global::System.Int32 canceledMark) { Answer answer = new Answer(); answer.ID = id; answer.QuestionID = questionID; answer.OrdinalNumber = ordinalNumber; answer.Text = text; answer.Significance = significance; answer.Group = group; answer.CanceledMark = canceledMark; return answer; }
/// <summary> /// Deprecated Method for adding a new object to the Answers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAnswers(Answer answer) { base.AddObject("Answers", answer); }