- 添加引用Microsoft.EntityFrameworkCore.Tools
- 添加引用后提示未找到命令“dotnet ef”向csprog文件添加如下节点
<ItemGroup> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" /> </ItemGroup>
<ItemGroup> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" /> </ItemGroup>