Scaffold DbContext

preview_player
Показать описание
Reverse engineering an existing database and convert it to code first using ASP.NET Core 5.0 and Entity Framework 5.0

1- Install Nuget Packages :

Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.Tools
Microsoft.EntityFrameworkCore.SqlServer (if you are using MS SQL Server)
Рекомендации по теме
Комментарии
Автор

Need help : while executing Scaffold-DbContext command in PMC we are getting error "the specified deps.json does not exist" but mentioned file already exists in the folder

jyotisharan
Автор

Scaffold-DbContext "server=[your server here];database=[your database here];persist security info=True;user id=[your user name here];password=[your password here];" -contextdir Data -outputdir Models -context dbContext

VilladsClaes