You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace EntityFrameworkCore.Jet.IntegrationTests.Model30
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Answer
|
|
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public int AnswerId { get; set; }
|
|
|
|
|
|
public string AnswerText { get; set; }
|
|
|
|
|
|
//public int Question_QuestionId { get; set; }
|
|
|
|
|
|
public virtual Question Question { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Question
|
|
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public int QuestionId { get; set; }
|
|
|
|
|
|
public string QuestionText { get; set; }
|
|
|
|
|
|
public virtual Answer CorrectAnswer { get; set; }
|
|
|
|
|
|
public virtual List<Answer> Answers { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|