Validate EF-Core model with real database schema at startup

Viewed 22

I use ASP.Net-Core with EF-Core.

My model class in code is configure wrong (typo in property name). This error will be detected at first access to database for this model.

Is there an option to force EF-Core validate each schema at startup from ASP.Net-Core? I do not mean the internal model validation. Instead I want that EF-Core validates the database.

0 Answers
Related