I have a CI pipeline, in Azure DevOps, to build a .net core 3 project which uses EF Core 3, I need a way to check if the developer missed to do Add-Migration after they changed the model in the system.

I thought about, somehow, do Add-Migration temp and check the generated file if it doesn't have any Up or Down steps in it, don't know how yet.

Is there a better way to do it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.