dotnet ef dbcontext Scaffold "connectionString" "Provider" -o DBModels
In the above command, ‘ConnectionString’ is the string that you use to connect with sql server. ‘Provider’ is the driver (nuget package) that will help you to interact with the sql server. e.g. for MySQL we could use ‘Pomelo.EntityFrameworkCore.MySql’ nuget package, for MSSQL we could use ‘Microsoft.EntityFrameworkCore.SqlServer’