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
|
If I have an Entity that has a 1 to many relationship in with another table, how do I get the query to populate the private EntityCollection field that holds references to the related table? Say I have a Customers table with column ID configured as foreign key on Orders table. Customer entity has EntityCollection TIA. |
|
|
Hello, You can use the Named Aggregate feature to load additional data as part of the query. Watch this screencast on how to achieve it: http://www.mindscapehq.com/products/lightspeed/screencasts/eager-loading-with-lightspeed Kind regards, John-Daniel |
|
|
Thanks again. Happy holidays. |
|
|
Thanks again. Happy holidays. |
|