entity framework core

C#
cd %ProjectDirectory%
dotnet ef dbcontext scaffold "connectionstring" Microsoft.EntityFrameworkCore.SqlServer -o Models --force

Source

Also in C#: