Search code examples
linqvisual-studio-2010loadoptions

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?


Solution

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