/// <summary> /// Deprecated Method for adding a new object to the TestAnswers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTestAnswers(TestAnswer testAnswer) { base.AddObject("TestAnswers", testAnswer); }
/// <summary> /// Create a new TestAnswer object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="testQuestionID">Initial value of the TestQuestionID property.</param> /// <param name="ordinalNumber">Initial value of the OrdinalNumber property.</param> /// <param name="text">Initial value of the Text property.</param> public static TestAnswer CreateTestAnswer(global::System.Int32 id, global::System.Int32 testQuestionID, global::System.Int32 ordinalNumber, global::System.String text) { TestAnswer testAnswer = new TestAnswer(); testAnswer.ID = id; testAnswer.TestQuestionID = testQuestionID; testAnswer.OrdinalNumber = ordinalNumber; testAnswer.Text = text; return testAnswer; }