How to fix System.NullReferenceException: Object reference not set to an instance of an object.

ademclk 21 Reputation points
2023-02-16T13:06:21.5+00:00

Mapping aggregates to database

I was mapping my aggregate roots to my database. Made 9 of them without errors but the last one I couldn't make it. Everything seems same but I couldn't figure out.

If you want to check my project files to understand what's going on ademclk/ceyehatapi

If you check my city configurations file I mapped entities like this and it worked fine. I don't know what's the problem with this one.

Help needed. If you want to check issue ademclk/ceyehatapi/issues

I opened a issue at efcore repository on Github https://github.com/dotnet/efcore/issues/30295

Developer technologies | .NET | Entity Framework Core
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.