Germán Schuager
unread,Mar 9, 2009, 9:55:43 PM3/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to castle-pro...@googlegroups.com
Hi, I've a class like this:
[Transactional]
public class Comp : IComp
{
public void MethodA()
{
MethodB();
}
[Transaction(TransactionMode.Requires)]
public void MethodB()
{
doSomething();
}
}
public interface IComp
{
void MethodA();
void MethodB();
}
When MethodB is called everything is fine, but when MethodA is called, which in turn calls MethodB, the transaction is ignored.
I've just spent some time trying to realize what was going on; since MethodB has the Transaction attribute I was expecting it to start a transaction no matter from where am I calling it.
Is this a known issue?