.net core 2.0 升级 2.1 访问mysql出现bug解决

 

Method not found: 'Void Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommandBuilderFactory..ctor(Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger`1<Command>, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper)'.

解决方案:

 编辑项目.csproj文件,在<ItemGroup>配置加入

<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.1.0-rc1-final" />

 

posted @ 2018-06-19 16:32  木落之年  阅读(1137)  评论(0编辑  收藏  举报