Creating a Model for an Existing Database in Entity Framework code example
Example: generate model from database entity framework
PM> Scaffold-DbContext "Server=.\SQLExpress;Database=SchoolDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models