Dear All,
I was trying to tune my slow Using Nhibernate implementation, as such I've turned on "lazy=true" for some sets of a table like this in a class called folder:
<set name="docs"
lazy="true"
inverse="false"
cascade="all-delete-orphan" table="FolderDocuments">
</set>
After I've done this, I hit the following error : "failed to lazily initialize a collection" on running the code:
if (folder.docs.Count > 0)
...
I'm nothing from being proficient in NHibernate. Hope you experts can guide me thru.
thanks!
jl
|