[ http://216.121.112.228/browse/NH-2768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabio Maulo closed NH-2768.
---------------------------
Resolution: Not an Issue
from Invoice i join fetch i.InvoiceLines
> Programmaticaly switching lazy initialization off on certain properties
> ------------------------------------------------------------------------------
>
> Key: NH-2768
> URL: http://216.121.112.228/browse/NH-2768
> Project: NHibernate
> Issue Type: Improvement
> Components: Core
> Affects Versions: 3.1.0
> Reporter: Himanshu Kodwani
>
> Nhibernate supports lazy initialization. In some scenarios I prefer few properties to initialize lazily but other times I want those properties to be fetched along with the entity itself in a single select and join statement. This will give better performance when the user knows in advance what properties he'll be working on.
> Something like:
> eg. ISession session.SwitchoffLazyOn("Invoice.InvoiceLines");
> now when we'll fetch an invoice, invoice lines will be fetched along with it in a single sql join statement without the need for sending another sql statement to the db.
> If you already have such a feature then kindly let me know what section of the documentation covers it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|