0

Scenario

I have e.g. abstract class called Quiz and two children of this Quiz: SingleAnswerQuiz and MultipleAnswerQuiz. I map this model into Table per hierarchy with entity framework.

Problem

Is there any way to change one SingleAnswerQuiz type to MultipleAnswerQuiz? I do not want to delete single quiz and create multiple with data of deleted quiz. I want to have the same id after "mapping". Should I use Discriminator?

zolty13
  • 1,943
  • 3
  • 17
  • 34

0 Answers0