注册

net6环境下EFCore.Dm6.0 add-migration报错

往事随风的汉子 2022/09/22 838 1

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:EFCore.Dm6.0
【操作系统】:windows
【CPU】:略
【问题描述】*:
Microsoft.EntityFrameworkcore(6.0.2)
Microsoft.EntityFrameworkcore.Design(6.0.2)
Microsoft.EntityFrameworkcore.Relational(6.0.2)
Microsoft.EntityFrameworkCore.Tools(6.0.2)
使用Add-Migration命令如下:

dotnet ef migrations add v4.2 --no-build

报错如下:

System.InvalidOperationException:Unable to resolve service for type 'Microsoft.EntityFrameworkCore.Storage.TypeMappingSourceDependencies' while attempting to activate 'Microsoft.EntityFrameworkCore.Dm.Storage.Intername.DmTypeMappingSource'

原Dm5.0环境下使用Add-Migration正常,升级net6更新DM6.0后异常,其余PostgreSQL(6.0.3)、Oracle.EntityFrameworkCore(6.21.5)、Pomelo.EntityFrameworkCore.Mysql(6.0.1)在net6环境下使用均正常

回答 0
暂无回答
扫一扫
联系客服