question

Kamil-0140 avatar image
0 Votes"
Kamil-0140 asked VarmanCholan-8506 answered

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

I use Visual Studio 2022 / Net Framework 6.0

I try make like this

https://docs.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 ?

dotnet-entity-frameworkdotnet-adonet
et3.png (38.3 KiB)
et2.png (59.9 KiB)
et1.png (9.5 KiB)
et.png (4.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Kamil-0140, is any update? Please check if the following answer works for you.

0 Votes 0 ·
Viorel-1 avatar image
1 Vote"
Viorel-1 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VarmanCholan-8506 avatar image
0 Votes"
VarmanCholan-8506 answered

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"

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.