阅读背景:

如何使用存储库模式查询交叉表?

来源:互联网 

In my asp.net mvc 3 application, I'm using the repository pattern. I have 3 entities, Company, Country, City. Each of them has their own repository. Company entity has FoundedCountry and FoundedCity foreign keys. Now in a view, I want to show the company details. In this view I want to view Company details as well as, FoundedCountry name and FoundedCity name. In my opinion I have to handle this with a kind of JOIN query. But I'm stuck at how to achieve this in repository pattern. How can I handle this JOIN in repository pattern?In my asp.net mvc 3 application, I'm using the




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

分享到: