using (new SessionScope){ // unless already in use
foo.Save();
var nhSessionUsedInPreviousSaveCall =
ActiveRecordMediator.GetSessionFactoryHolder().CreateSession(typeof(ActiveRecordBase));
}
-Markus
2009/9/2 the.wizard <[email protected]>
>
> Hi everyone,
> Does anyone know how to get the session object in castle active record
> when doing a transaction? I want to perform a transaction that consist
> of a direct save using Castle Active Record object, and using a stored
> procedure, and I need the session object to pass it to my method that
> execute my stored procedure.
> Please help me, I have already frustated with this problem, have been
> looking all over internet, but can't find one to solve this problem.
> Really thanks a lot.
>
> Regards.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---