I have a ASP.NET MVC 6 application, and i need to call the Database.EnsureCreated and Database.Migrate methods.
Database.EnsureCreated
Database.Migrate
But where should I call the
Additionally you may see a performance hit if you call this in the constructor of your context... After moving EnsureCreated to the setup.cs utility, I noticed considerable improvements to my response times.
EnsureCreated
Note: I am using EFC and UWP.