scaffold-dbcontext update model from database code example
Example 1: update models with ef core
Scaffold-DbContext "Server=myserver\mydb;Database=mydb;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -t <table> -f
Example 2: how to update modal class using dbfirst in asp.net core
Update DbContext