第一步执行
dotnet tool install --global dotnet-ef
第二步
dotnet new console
第三步
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet add package Microsoft.EntityFrameworkCore.Design
第四步
dotnet ef dbcontext scaffold "server=.; database=MustGoHomeLog; uid=sa; pwd=19950304;" Microsoft.EntityFrameworkCore.SqlServer