Is there an in-memory provider for Entity Framework?

前端 未结 8 2330
情书的邮戳
情书的邮戳 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:08

    You could try SQL Server Compact but it has some quite wild limitations:

    • SQL Server Compact does not support SKIP expressions in paging queries when it is used with the Entity Framework
    • SQL Server Compact does not support entities with server-generated keys or values when it is used with the Entity Framework
    • No outer joins, collate, modulo on floats, aggregates

提交回复
热议问题