public virtual void DoTwoDBOperation_CreateEx(bool throwException) { firstDao.Create(Guid.NewGuid().ToString()); orderDao.Create(1.122f); if (throwException) { throw new InvalidOperationException("Nah, giving up"); } }
public virtual void DoTwoDBOperation_Create(bool throwException) { Blog blog = firstDao.Create(); secondDao.Create(blog); orderDao.Create(1.122f); if (throwException) { throw new InvalidOperationException("Nah, giving up"); } }