question

RajaGanapathy-2070 avatar image
0 Votes"
RajaGanapathy-2070 asked sonayadav-9602 commented

Can't find ado.net entity data model missing visual studio 2019.

i have installed Entityframework 6 also but ado.net entity data model not visible

dotnet-entity-frameworkdotnet-aspnet-webapi
· 2
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.

You need to create new project as asp.net...framwork not core.

0 Votes 0 ·

you should create new project in .net framework, when you choose project which type you want there mention in braces(.net framework ) if you want that show ADO model in your project

0 Votes 0 ·
DuaneArnold-0443 avatar image
0 Votes"
DuaneArnold-0443 answered

@RajaGanapathy-2070

Why would you need to install EF 6 in regards to using VS2019?

I created a .NET Framework 4.7 WebAPI project, added a 'new item' to project, selected 'Data' and selected 'Data Model' that took me through the wizard of creating a EF model from an existing database, which I would assume it would be some EF 6.x version.

Maybe in your creating of the assumed WebAPI project, you selected a .NET Core framework by mistake, and EF Core doesn't use the 'entity data model' that can be selected from 'Data'.

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.

YihuiSun-MSFT avatar image
0 Votes"
YihuiSun-MSFT answered SunandaNaik-2995 published

Hi @RajaGanapathy-2070,

but ado.net entity data model not visible

Do you mean you can't find "Ado.Net Entity Data Model"?

  • You can right-click on the Models folder and select Add New Item->Data->Ado.Net Entity Data Model.

88211-capture.png


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
YihuiSun


capture.png (11.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.

Thats True, But when I created a separate Class Library type under the Solution alongwith my project, on right click of that class library, i dont get to see ADO.NET entity Model.. Help needed.

0 Votes 0 ·
DuaneArnold-0443 avatar image
0 Votes"
DuaneArnold-0443 answered
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.

RogerWoolnough-2269 avatar image
3 Votes"
RogerWoolnough-2269 answered Paulb-6261 published

you can't make an ADO.Net Entity Data Model with an interface with .NET Core, Only with .NET Framework.

· 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.

Good job.
Something the other experts should have seen. This was helpful.
As much as I'd love to run this on my Linux machine, it's just so much easier using EF!

0 Votes 0 ·
TemiyaAhmad-1655 avatar image
1 Vote"
TemiyaAhmad-1655 answered

I solved the same problem by following these:

1)While Creating project don't select class Library(.NET Standard) Choose Class Library (.NET Framework)

2)Choose ASP.NET Web Application (.NET Framework)

3) Go to Tools -> Get Tools and features.
Select Individual components tab and check Entity Framework 6 tools under SDK's, libraries, and framework section

4)Remember you can't make an ADO.net Entity Data Model with an interface with .NET Core, its only possible with .NET Framework.

Hope these will solve yours too.

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.