开发者

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 thi开发者_Python百科s? 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜