Closed mahyarmot closed 3 years ago
After reviewing the existing open bug, I tried to downgrade EF core version to 3.0.0.0 but that did not solve the issue too.
After doing some troubleshooting,I think there is a bug in the extension method, it appears that in the process of reading the properties from entities, some properties which are not discriminators also have PropertyInfo as null, in my case, it was owned classes. ( They have some sort of ID).
Thanks for the analysis. I'll add a verification on the PropertyInfo
field. But if you want, you can open a PR to add an extra verification on the PropertyInfo
.
I understand a PR for this issue has been merged, does it mean it has been solved?
Yes indeed. It has been shipped with v2.0.0
. Thanks for updating this. Closing the issue.
I have followed the package installation, however, I am receiving "Object reference not set to an instance of an object" at OnModelCreating event. The version of EF Core is 3.1.1 and the inner exception is
ChangeTracker = 'this.ChangeTracker' threw an exception of type 'System.InvalidOperationException'