Hi again. I'm using Linq2NH. I would like to know if is there a way to dynamically choose with Linq what bag's and many-to-one's will be loaded.
Lets suppose that I want to load a collection of cars, so: var query = from car in Session.Linq<Car>() select car; But now I want to eager load, based on parameters, the owner of the car. I know that the above query is what I want but I don't know how to dynamically complete it to load the owner too. The same thing, and even more important is do it with the bags of Car. With filters I know that I could do query = query.Where.... but in this case I don't know what to do. I even tried query = query.Select.... but didn't work. Anyone can help me? Thank you, Cassio Tavares - [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
