Mike Pateras
Mike Pateras

Reputation: 15015

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?

Upvotes: 0

Views: 60

Answers (1)

Amy B
Amy B

Reputation: 110071

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

Upvotes: 1

Related Questions