You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Erik Ejlskov Jensen edited this page Jul 24, 2026
·
18 revisions
This guide walks you through the basic steps of generating a DbContext and entity classes for an Azure SQL or SQL Server database. For detailed instructions see the wiki
Install EF Core Power Tools via the Extensions/Manage Extensions menu inside Visual Studio.
Right click a project in Solution Explorer, select EF Core Power Tools/Reverse Engineer or press Ctrl+Shift+A, select the Data folder, and select the EF Core Database First Wizard
Connect to your existing database via the Add button (or pick an existing connection from the drop down list)
Choose database objects, you can use the top checkbox to select all objects
Choose options, or just accept the defaults
Click OK, and C# DbContext and entity classes will be generated in the current project.