Ayende Rahien wrote:
You can use session.Lock() to associate an entity with a session.
Thanks for the fast reply! However, I don't see how to solve my problem that way - I don't even have an object yet (do I have to create an empty dummy instance?). Imagine the following snippet:
Code:
public MyBusinessObject TransformRow(DataRow row)
{
ISession session = GetSession();
MyBusinessObject obj;
//TODO create object based on row
[GREAT CODE GOES HERE...]
//finally return the object
return obj
}
Thanks in advance :)
Philipp