Hi, I’m working in a multithreading routine; this routine accesses the data base using NHibernate, I get a new session for each thread, but I have two problems:
First, if I define my classes as “Lazy”, then I get the following message error "Creating a proxy instance failed".
Second, if I change my class definition to be “not lazy”, I have a lot of memory problems, because it’s very hard to get a new session in each thread.
Could anybody help to defined my classes as Lazy in a multithreading routine?
|