.net 事务处理

 Dim tos As New TransactionOptions()

 tos.IsolationLevel = iLevel

  tos.Timeout = New TimeSpan(0, 0, 90)

  Using(Scope As TransactionScope= New TransactionScope(TransactionScopeOption.Required, IsolationLevel.ReadCommitted))

{

 '''''可以写SQL操作了但是多个操作必须,要用同一个SqlConnection进行关联

  Scope .Complete()

}


你可能感兴趣的:(.net)