开发者

Mocking entity - Enity Framework 3.5

Is it possibl开发者_StackOverflow中文版e to mock EF 3.5 entities. if so..how?


Unfortunately, Entity Framework is not well suited for mocking, due to lack of interfaces for example. Here's another SO question that deals with a simialr issue.

I think your best bet is to use the Moles framework from Microsoft (though it doesn't have the nicest API to work with from what I've seen. But hey, at least it's free)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜