JonPSmith / EfCore.TestSupport

Tools for helping in unit testing applications that use Entity Framework Core
https://www.thereformedprogrammer.net/new-features-for-unit-testing-your-entity-framework-core-5-code/
Other
352 stars 53 forks source link

EfSchemaCompare: Would like to to handle the nullability of the inherited classes #25

Closed JonPSmith closed 3 years ago

JonPSmith commented 4 years ago

If you have a THP class in your model, then EfSchemaCompare will show an error on non-nullable properties in the non-base entities. That's because EF Core makes the columns nullable because those properties may not be used.

I'm not sure if I can catch that and stop these errors, but its worth having a look. Not urgent, but nice to have.

JonPSmith commented 3 years ago

Fixed in new EfCore.SchemaCompare, but there is a limitation around 'Required` Owned types.