0

我正在尝试构建一个调查系统,并希望在Question模型上使用继承,使用代码优先迁移。

public class MultipleChoiceQuestion : Question {
  public bool AllowMultipleSelection { get; set; }
  public List<MCQOption> Options { get; set; }
}

即使我添加另一个DbSet<MultipleChoiceQuestion>,它也不会出现在迁移中。我究竟做错了什么?

4

0 回答 0