Unable to resolve service for type while attempting to activate

后端 未结 7 979
春和景丽
春和景丽 2020-12-09 02:22

I have one file Repository.cs that contains an interface and its implementation like so:

public interface IRepository

{
    IEnumerable

        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 02:53

    This may not be helpful for your code sample but in my case the same error was a result of a circular dependency.

提交回复
热议问题