views:

88

answers:

0

I'm trying to eager load a couple first level association with on one of my classes, but it seems to ignore one of my LoadWith directives.

dlo.LoadWith<MyClass>( mc => m.TypeRecord)
dlo.LoadWith<MyClass>( mc => m.User)
dlo.LoadWith<MyClass>( mc => m.Item)

When I execute queries that return MyClass, A query is created that joins TypeRecord and User but not Item (I can see this in SQL Profiler).

The only difference between Item and the other two associations is that Item is defined as "override" on MyClass.

So my question is: What limitations exist for eager loading with the LoadWith method?