开发者

Entity framework unit testing with sqlite

Is it possible to unit test Entity Framework v2 repositories with SqLite? Is this only p开发者_JAVA技巧ossible if my entities are plain Poco and not automatically generated by Entity Framework?

I've generated a entity model from SqlServer and in the generated .edmx file i found this in section SSDL content: Provider="System.Data.SqlClient". Correct me if I am wrong, but shouldnt that be System.Data.SQLite in order to work with sqlite?


Its only possible if two entity models are created (one for each provider) and then make both object contexts implement the same interface.

Its not worth the effort to manage two entity models.

I hope this get fixed in Entity Framework Ver 3.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜