0

I created a database with Microsoft SQL Server Management Studio, added the connection to my visual studio project. Then I wanted to use Scaffold-DbContext to create a model based on the existing database. So I input

Scaffold-DbContext "Server=myserver; Database=database; Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

In the Package-Manager Console, but I get the error

The Microsoft.Data.SqlClient.SNINativeMethodWrapper type initiator triggered an

I can't find anything about this problem and I am wondering if anyone has a solution.

Hamed Moghadasi
  • 1,523
  • 2
  • 16
  • 34
Zerueru
  • 13
  • 4

0 Answers0