为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【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环境下使用均正常
目前官方不是只提供efcore5.0的驱动么,请问您这个efcore6.0的驱动是从哪获取的?