Is there an in-memory provider for Entity Framework?

前端 未结 8 2314
情书的邮戳
情书的邮戳 2020-12-05 22:42

I am unit testing code written against the ADO .NET Entity Framework. I would like to populate an in-memory database with rows, and make sure that my code retrieves them pro

8条回答
  •  感情败类
    2020-12-05 23:28

    An InMemory provider is included in EF7 (pre-release).

    You can use either the NuGet package, or read about it in the EF repo on GitHub (view source).

提交回复
热议问题