Hi,

I used Castle.Facilities.AutoTx in my program, but it didn't work.

Code:
namespace BLL.IMPL.User
{
    [Transactional]
    public class UserInfoManagerIMPL : InitializingCastle,
IUserInfoManager
    {
 
[Transaction(Castle.Services.Transaction.TransactionMode.Requires)]
        public virtual bool AddUserInfo(UserInfo user)
        {
            ActiveRecordMediator<UserInfo>.Create(user);
            throw new Exception("test");
        }
}

This method throw an Exception,but the userinfo has commit.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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-devel?hl=en.

Reply via email to