This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
With MS Entity Framework, I am able to "include" related sub-tables when I query for an entity.
However, if I try the same thing with Lightspeed, the "Include" method is not found? How do I include related sub-tables records when fetching a parent entity? Thanks, Carl |
|
|
.Include() is an EntityFramework specific extension method. As a background to this Child associations will always be available to be lazily loaded on property access but to have these loaded inline with the entity itself you want to use a named aggregate to control the load. Here are the pages in the documentation which go in to this subject more:
And here is a blog post with some more examples of this: http://www.mindscapehq.com/blog/index.php/2011/01/19/controlling-lightspeed-entity-loading-with-named-aggregates/
|
|