my code like this:
[Transaction(TransactionMode.Requires)]
public virtual void CreateOrder(Order order)
{
order.Save();
}
[Transaction(TransactionMode.Requires)]
public virtual void CreateOrderWithException(Order order)
{
CreateOrder(order);
throw new Exception("The method or operation is not implemented.");
}
when I execute the CreateOrderWithException method that throw a
exception,but I find the order is still persisted.
in this scene,I want to rollback the CreateOrder operation. Are there
any ways to do that?
my castle version is rc2.
thx for your help.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
CastleProject-users mailing list
CastleProject-users@...
https://lists.sourceforge.net/lists/listinfo/castleproject-users