Get and Load have a special meaning, you want that entity, and bypass the database if possible. Get and Load are not meant for get the entity and... your 3 options are 1. Get the entity and lazy load the related entities. 2. use a query to retrieve the object graph. 3. disable lazy loading (not a good idea)
I would start with option 1, lazy loading. if the performance suffers, refactor to use a query instead. On Jan 5, 11:59 am, Aaron Fischer <[email protected]> wrote: > Is there a way to disable lazy-loading for get or load? Or do I need to > setup a special session instance for this? -- 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.
