I am new in implement Nhibernete.
If i use XML documents (.hbm.xml files) in Nhibernete, i enable/disable lazy loading in that xml.
Is there any way in Nhibernete where i can set lazy loading at run time?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest you not to define lazy loading/eager loading in your hbm file.
You can control everything using QueryOver
Lazy loading:
Eager loading:
or
I would suggest you to read this interesting article.