Value cannot be null: connection while testing database

末鹿安然 提交于 2019-12-01 16:38:42

You're calling Commit and then Rollback, but the comments point that mistake out.

The error isn't very intuitive, I mean, an ArgumentNullException should never work its way out of an SDK from down the stack.

But I've had this when I've accidentally reused the same transaction instance, or called Commit twice, or tried to rollback twice in layered error recovery logic.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!