I would like to do a .NET Entity Framework health check on all the existing Data Model Entities and potentially stored procedures (against their representative database tables) on application startup. We are using Database First Approach so changes are made in production using SQL scripts prone to manual execution errors.
This will allow me to identify any synchronization issues (Especially after deployment) in a controlled way (Customized error handling). Providing a higher level of confidence in new release deployments and faster debugging of issues.
Additionally this will be added to a self-diagnostic screen so that infrastructure personnel can at any time verify the database health.
Any idea how to do this? I can't seem to find a native EF mechanism of doing this so it will fail when you use the erroneous entity which is unpredictable and can easily be missed.