阅读背景:

.net体系结构:通常创建一个IRepository

来源:互联网 

I am using a generic repository interface which allows me to add, find, update and delete objects of different types. I have then implemented two concrete repositories and can switch them around without changing the application. Everything is wonderfully disconnected. But I have hit a snag. The code inside my repository methods just feels wrong and I cannot figure out how to do it better. Here is a snippet of my code:I am using a generic repository interface which




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: