How many tables?
SQL Server version?
Entity Framework Core 5.0 scaffold-dbcontext hangs within Package Manager
I have created my first scaffold-dbcontext command and run it in Package Manager Console in Visual Studio 16.6.2. After 'Build succeeded.' the PM just hangs. I can do nothing except restart Visual Studio to get PM back. When I re-open the project the output files appear in the Entities folder of the project, as expected. How do I eliminate the hang?
PM> scaffold-dbcontext -provider Microsoft.EntityFrameworkCore.SqlServer -connection "Data Source=sqldevi\devi;Initial Catalog=anami;Integrated Security=true;Pooling=false;" -OutputDir Entities –Context Anami –Tables member_creditcard
Build started...
Build succeeded.
Here are the packages in the .net core 3.1 project. Note that, as a console app, Program.cs is just the original stub, there is no other code, hence the project compiles successfully!
Packages
Microsoft.CodeAnalysis (3.7.0)
Microsoft.Data.SqlCLient (2.0.1)
Microsoft.EntityFrameworkCore (5.0.2)
Microsoft.EntityFrameworkCore.SqlServer (5.0.2)
Microsoft.EntityFrameworkCore.Tools (5.0.2)
Developer technologies .NET Entity Framework Core
1 answer
Sort by: Most helpful
-
ErikEJ 341 Reputation points MVP
2021-03-17T18:07:38.433+00:00