hi all, i have a question about the castle ATM.
i'm using nhibernate facilities and i want to use transaction-per-
request pattern.
if i have this classes
[Transactional]
class DaoA
{
[Transaction]
void MethodA() { }
}
[Transactional]
class DaoB
{
[Transaction]
void MethodB() { }
}
this code will use 1 or 2 transaction?
class Container
{
void Run()
{
new DaoA().MethodA();
new DaoB().MethodB();
}
}
and if the response is 2 there's same not tricks way to have an unique
nhibernate transaction for web request?
i'm using normal asp.net pages and the access to the db happens in
different nested controls so i haven't a single class as the container
of my example where i can simply add the Transaction/Transaction
attribute to group the nested transactions in a unique.
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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/castle-project-users?hl=en.