我为数据库操作开发 DAL 类
Public Sub StartTransaction()
Dim objConnection As SqlConnection = EstablishConnection()
objConnection.Open()
Me.Transaction = objConnection.BeginTransaction()
End Sub
Public Sub CommitTransaction()
Me.Transaction.Commit()
End Sub
Public Sub RollBackTransaction()
Me.Transaction.Rollback()
End Sub
在我们提交或回滚时启动事务并将事务对象设置为空后它不会关闭与此事务的连接附加我如何关闭连接到此事务的附加???