/// <summary> /// Create a new Answer object. /// </summary> /// <param name="answerId">Initial value of the AnswerId property.</param> /// <param name="testId">Initial value of the TestId property.</param> /// <param name="questionOptionId">Initial value of the QuestionOptionId property.</param> public static Answer CreateAnswer(global::System.Int32 answerId, global::System.Int32 testId, global::System.Int32 questionOptionId) { Answer answer = new Answer(); answer.AnswerId = answerId; answer.TestId = testId; answer.QuestionOptionId = questionOptionId; 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); }