Scaffolding tables from database

PHOTO EMBED

Thu Apr 07 2022 08:46:34 GMT+0000 (UTC)

Saved by @Karam #sql

Scaffold-DbContext "Data Source=.;Initial Catalog=Name;Persist Security Info=True;User ID=Username;Password=@!n$p!r3;Integrated Security=True" Microsoft.EntityFrameWorkCore.SqlServer -outputdir Repository/Models -context AccDbContext -contextdir Repository -DataAnnotations -Force
content_copyCOPY

Use this code in package manager console