开发者

LINQ: Can I load more than one generation of descendants with DataLoadOptions?

开发者 https://www.devze.com 2022-12-20 02:24 出处:网络
I\'m using the following DataLoadOptions: DataLoadOptions options = new DataLoadOptions(); options.LoadWith<Family>(f => f.FamilyLanguages);

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

精彩评论

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

关注公众号