ef core existing database code example
Example 1: scaffold-dbcontext sql server
PM> Scaffold-DbContext "Server=.\SQLExpress;Database=SchoolDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
Example 2: ef core update database command
update database