Try another new project: "Aplikacja WPF (.NET Framework)".
entity-framework -- ADO.NET Entity Data Model error
Kamil
26
Reputation points
I use Visual Studio 2022 / Net Framework 6.0
I try make like this
This also not help -> Scaffold-DbContext "Server=(localdb)\MSSqlLocalDB;Database=Northwind;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
Any ideas ?
2 answers
Sort by: Most helpful
-
-
Varman Cholan 1 Reputation point
2022-05-23T16:11:42.413+00:00 This is not supported in VS 2022. Instead open the nuget package manager console and type the following command for the project:
Scaffold-DbContext -provider Microsoft.EntityFrameworkCore.SqlServer -connection "Data Source=Your server; Initial Catalog=your database; trusted_connection=true"