I\'m trying to get information from some of my models that have a foreign key relationships to my main employee model. If I map out each model individually, I can access the
I had the similar issue. What happens is that in the database foreign keys are created and it starts mapping both the models and then throws an exception. Best way is to avoid foreign key creation by using [NotMapped] as you could use complex models and also avoid creation of Foreign Key.