From Db First to code first

preview_player
Показать описание
How to use scaffold dbcontext in Entity Framework 3.0 to reverse engineer and existing database to code first?
Рекомендации по теме
Комментарии
Автор

When I try to change dbcontext and run new migration, it's says that tables already exist

LukeSamkharadze
Автор

I used a Core Console Application created a [Model] and [Data] folder
PM>Scaffold-DbContext "Data Source=chinook.db" -ContextDir Data -OutputDir Models -Context ChinookContext
Creates the Context without DbSet and No Models. Why? Is WebApplication a prerequisite?

DriveU