当前位置: 动力学知识库 > 问答 > 编程问答 >

visual studio 2010 rc - LINQ: Can I load more than one generation of descendants with DataLoadOptions?

问题描述:

I'm using the following DataLoadOptions:

DataLoadOptions options = new DataLoadOptions();

options.LoadWith<Family>(f => f.FamilyLanguages);

options.LoadWith<FamilyLanguage>(fl => fl.Language);

The Family object comes back with a list of FamilyLanguages, but the FamilyLanguages have only got a LanguageID, the Language object is null.

This was working under Visual Studio 2010 Beta 2, but now I'm using the Visual Studio 2010 Release Candidate. Is this no longer the proper way to do this? Has there been some change to LINQ?

网友答案:

That should work. Stackoverflow is not a good way to reach microsoft with beta bugs - try contacting microsoft directly.

分享给朋友:
您可能感兴趣的文章:
随机阅读: