/// <summary> /// Deprecated Method for adding a new object to the Questions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToQuestions(Question question) { base.AddObject("Questions", question); }
/// <summary> /// Create a new Question object. /// </summary> /// <param name="id">Initial value of the ID 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="type">Initial value of the Type property.</param> /// <param name="modulID">Initial value of the ModulID property.</param> /// <param name="canceledMark">Initial value of the CanceledMark property.</param> /// <param name="explanation">Initial value of the Explanation property.</param> public static Question CreateQuestion(global::System.Int32 id, global::System.Int32 ordinalNumber, global::System.String text, global::System.Int32 significance, global::System.Int32 type, global::System.Int32 modulID, global::System.Int32 canceledMark, global::System.String explanation) { Question question = new Question(); question.ID = id; question.OrdinalNumber = ordinalNumber; question.Text = text; question.Significance = significance; question.Type = type; question.ModulID = modulID; question.CanceledMark = canceledMark; question.Explanation = explanation; return question; }