dmdbms / Microsoft.EntityFrameworkCore.Dm

DaMeng database provider for Entity Framework Core. 达梦数据库Entity Framework Core提供程序.
MIT License
28 stars 9 forks source link

生成实体类报错:Unable to resolve service for type #6

Closed njroyin closed 1 year ago

njroyin commented 1 year ago

生成实体类报错 执行 dotnet ef dbcontext scaffold "server=xxxx;Schema=xxxx;port=5236;user=SYSDBA;password=xxxx" Microsoft.EntityFrameworkCore.Dm --context MyDbContext --context-dir Context --output-dir Entities --no-onconfiguring --no-pluralize -f

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger`1[Microsoft.EntityFrameworkCore.DbLoggerCategory+Scaffolding]' while attempting to activate 'Microsoft.EntityFrameworkCore.Dm.Scaffolding.Internal.DmDatabaseModelFactory'.

net 6.0 dmdbms.Microsoft.EntityFrameworkCore.Dm 5.0.3 dmdbms.DmProvider 1.1.3

yangzhongke commented 1 year ago

这里不是达梦官网库。现在不支持.NET 6。请联系达梦官方。

aaasoft commented 1 year ago

你好,现在达梦官方已经支持EntityFrameworkCore 6.0了.我已经把新的包发布到nuget上了,你可以试试。 https://www.nuget.org/packages/dmdbms.Microsoft.EntityFrameworkCore.Dm/6.0.16.16649