开发者

Mocking entity - Enity Framework 3.5

开发者 https://www.devze.com 2023-02-11 13:14 出处:网络
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 q

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

精彩评论

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