First of all, sorry for my English.
I have a project with EF 6 and ASP.NET MVC 5, I've enable automatic migration, but every time I make the first query (my login), it takes a long time to run, one minute approx. I've debugged the code and I see that the models are rebuilt again and I don't know if this should happen. I've tried to disable automatic migration:
AutomaticMigrationsEnabled = false;
In the configuration class and also:
Database.SetInitializer<Models.CardCotaContext>(new CreateDatabaseIfNotExists<Models.CardCotaContext>());
in the Global.asax
class, but nothing.
I'm worried because the same thing happens on the server.
Thanks.