我有一个Spring管理的服务方法来管理数据库插入。它包含多个insert语句。// aop pointcut inserted here in unit test}
我有两个单元测试,它们在调用第二个insert之前抛出一个异常。如果异常是RuntimeException,则回滚事务。如果异常是SQLException,则</e
也许这是一个非常棘手的问题,因为我对处理PetaPoco事务相当陌生。使用PetaPoco作为microORM处理db事务所面临的问题是,如果我在事务的.Complete()方法之前抛出异常,则所有内容都将正确回滚,但如果在
Using scope As PetaPoco.Transaction/catch here and if the db command fails transaction won