EF core Scaffold-DbContext doesn't work : Execution Timeout Expired

2

I'm trying to scaffold Models from an existing database.

Scaffold-DbContext "connectionString" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

But I got this error:

Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

  • All required packages are installed (tried another connection string and it's working)
  • Tried (Connect timeout 15000 and Connection timeout 15000)
  • I can connect with the same connection string via Sql Server management / VS Server explorer

Any ideas?

c#
sql-server
entity-framework-core
database-first
asked on Stack Overflow Aug 23, 2020 by dr1sshamra • edited Aug 23, 2020 by Dale K

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0