我正在使用实体框架 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。
先感谢您。
最好的祝福,马尔科·阿尔维斯。