コード例 #1
0
 /// <summary>
 /// Create a new QuizResponse 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="date">Initial value of the Date property.</param>
 public static QuizResponse CreateQuizResponse(global::System.Int32 id, global::System.Int32 questionId, global::System.Int32 answerId, global::System.DateTime date)
 {
     QuizResponse quizResponse = new QuizResponse();
     quizResponse.Id = id;
     quizResponse.QuestionId = questionId;
     quizResponse.AnswerId = answerId;
     quizResponse.Date = date;
     return quizResponse;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the QuizResponses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToQuizResponses(QuizResponse quizResponse)
 {
     base.AddObject("QuizResponses", quizResponse);
 }