/// <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="answerId">Initial value of the AnswerId property.</param> /// <param name="answer1">Initial value of the Answer1 property.</param> public static Answer CreateAnswer(global::System.Int32 id, global::System.Int32 questionId, global::System.Int32 answerId, global::System.String answer1) { Answer answer = new Answer(); answer.Id = id; answer.QuestionId = questionId; answer.AnswerId = answerId; answer.Answer1 = answer1; 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); }