IDbAsyncEnumerable not implemented

前端 未结 7 804
清歌不尽
清歌不尽 2020-12-01 10:50

I am trying to make a FakeDbContext with a FakeDbSet for unit testing.

But I get the following error (see below). I am extending DbSet so normally IDbAsyncEnumerable

7条回答
  •  盖世英雄少女心
    2020-12-01 11:14

    DbSet probably implements IDbSet implicitly so that those methods are not available for interface mapping in your derived class.

    Don't derive from IDbSet.

    You cannot call the explicitly implemented interface members of IDbSet from a re-implementation of that interface.

提交回复
热议问题