Assume having these models first:
Method that has one OriginalCode OriginalCode that has many Mutants Mutan
Method
OriginalCode
Mutant
Mutan
In my case there was a conflict between the namespaces System.Data.Entity and Microsoft.EntityFrameworkCore. Just delete the first using line.