IDbAsyncEnumerable not implemented

前端 未结 7 805
清歌不尽
清歌不尽 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:19

    To solved my IDbAsyncEnumerable issue:

    1. Changed my project's target from .NetFramework 4.0 to .NetFramework 4.5

    2. Reinstalled EntityFramework 6.1.3 Nuget package.

    3. At this point, my Visual Studio's IDE Show Potencial Fixes advisor, allowed me to reference System.Data.Entity.Infrastructure namespace

    using System.Data.Entity.Infrastructure;

提交回复
热议问题