【发布时间】:2014-07-05 10:06:38
【问题描述】:
我正在使用 Entity Framework 6.1.0 和 LINQ to SQL
我的对象图:
市场 1...n MarketAsset n...n 公司市场 n...1 公司
所以,
Market has a Collection of MarketAsset called MarketAssets
MarketAsset has a collection of CompanyMarket called CompanyMarkets
CompanyMarket has a property name callled Company
Company has a string property called Guid.
我的问题是:考虑到我需要过滤 Company.Guid 属性,我如何获得公司运营的所有市场的列表?
PS1:我只想返回市场。我不想在我的结果集中包含任何其他相关实体。
PS2:我也在使用 IdeaBlade DevForce。
提前谢谢你。
祝你好运, 马可·阿尔维斯。
【问题讨论】:
-
说实话,我真的不知道从哪里开始。如果这不是您所期望的,我很抱歉。感谢您的评论!
-
IdeaBlade DevForce 通过我 - 这对这个问题很重要吗?看起来很少有人熟悉 DevForce。如果它不重要,您可能希望将其从标题和标签中删除。
-
@tintyethan。完毕。谢谢。
标签: c# linq entity-framework predicatebuilder devforce