Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Unit testing with EFa3

$
0
0
Had to make another change. Something must've changed in EF6 since a3 because ToListAsync was broken. It doesn't go through Provider first so the DbSet now needs to support IDbAsyncEnumerable<T>. For the two added methods, this seemed to work fine for me:
    public IDbAsyncEnumerator<T> GetAsyncEnumerator()
    {
        return new AsyncEnumeratorWrapper<T>(_data.GetEnumerator());
    }

    IDbAsyncEnumerator IDbAsyncEnumerable.GetAsyncEnumerator()
    {
        return GetAsyncEnumerator();
    }

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>