C#C
C#4y ago
13 replies
Pedro Furlan

✅ ✅ Generate migrations with EF on sqlserver image docker taking too much time

Hello , it's my first time making questions here , so if i forgot to provide some information , please , let me know.
Recently i changed my Sql Express to sql image docker , and generated my migrations in it , but i realize that when i use Sql Image docker take too long than SqlExpress to generate my database and tables. When i do the "database update" it get stuck in "Opening connection to database 'Lets_Person' on server 'localhost,1433'" and takes minutes to proceed. I'd like to know if i 'm doing somenthing wrong , and if i need any more configuration both System and docker. Follow my connection strings that i use to generate migrations:

"Server=localhost,1433;Initial Catalog=Lets_Person;Persist Security Info=True;User ID=sa;Password=Teste@123;MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=True;Connection Timeout=300;",
Error.png
Was this page helpful?