.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()
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。