scaffold-dbcontext VS2019 .net core 2.1 from database using windows authentication c# code example
Example: scaffold-dbcontext sql server
PM> Scaffold-DbContext "Server=.\SQLExpress;Database=SchoolDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models