Create Context and entity class from database in Code First

RUFIN 21 Reputation points
2022-02-06T16:56:44.32+00:00

171688-eeee.png
I want to create Context and entity class from database in Code First
I have installed Nuget EntityFramework 6.4.4
I use visual studio 2019, ASP.NET MVC 6
When I do like Figure 1 and 2, it doesn't output the entity classes from the database, I want the result like Figure 3
I have installed Entity_Framework_6_Power_Tools_Community_Edition_v0.9.126 but it doesn't work
What step am I missing, please help

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,480 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yijing Sun-MSFT 7,081 Reputation points
    2022-02-07T02:27:05.547+00:00

    Hi @RUFIN ,

    I have installed Entity_Framework_6_Power_Tools_Community_Edition_v0.9.126 but it doesn't work

    The name of your package is Entity_Framework_6_Power_Tools_Community_Edition_v0.9.126?
    As far as I know,MVC 6 is the part of Asp.net 5. And Asp.net 5 is renamed as asp.net core 1.0. So,I think,you need to use EF core.

    Best regards,
    Yijing Sun


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.