349 Star 1.8K Fork 638

GVP李玉宝 / OpenAuth.Core

 / 详情

单元测试异常

Done
member
Opened this issue  
2021-01-06 00:11
DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'OpenAuth.Repository.OpenAuthDBContext' can be invoked with the available services and parameters:
Cannot resolve parameter 'Microsoft.Extensions.Logging.ILoggerFactory loggerFactory' of constructor 'Void .ctor(Microsoft.EntityFrameworkCore.DbContextOptions`1[OpenAuth.Repository.OpenAuthDBContext], Microsoft.Extensions.Logging.ILoggerFactory)'.

Autofac.Core.DependencyResolutionException:“An exception was thrown while activating OpenAuth.Repository.UnitWork`1[[OpenAuth.Repository.OpenAuthDBContext, OpenAuth.Repository, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> OpenAuth.Repository.OpenAuthDBContext.”

以前都没这个问题?

Comments (0)

码神 created任务
码神 set related repository to 李玉宝/OpenAuth.Core
码神 changed issue state from 待办的 to 已完成
Expand operation logs

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
C#
1
https://gitee.com/yubaolee/OpenAuth.Core.git
git@gitee.com:yubaolee/OpenAuth.Core.git
yubaolee
OpenAuth.Core
OpenAuth.Core

Search