entity-framework -- ADO.NET Entity Data Model error

Kamil 26 Reputation points
2022-04-10T09:34:42.547+00:00

I use Visual Studio 2022 / Net Framework 6.0

I try make like this

https://learn.microsoft.com/pl-pl/visualstudio/data-tools/create-a-simple-data-application-with-wpf-and-entity-framework-6?view=vs-2022

191546-et3.png

191592-et2.png

191566-et1.png

191490-et.png

This also not help -> Scaffold-DbContext "Server=(localdb)\MSSqlLocalDB;Database=Northwind;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

Any ideas ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,337 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 111.7K Reputation points
    2022-04-10T10:04:31.863+00:00

    Try another new project: "Aplikacja WPF (.NET Framework)".

    1 person found this answer helpful.
    0 comments No comments

  2. 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"

    0 comments No comments