【发布时间】:2011-06-01 05:46:16
【问题描述】:
在父事务范围内,我有必需的 TransactionScopeOption。
稍后在内部事务范围内,我需要检查父事务范围的 TransactionScopeOption。
这怎么可能..
例子
Parent : using (TransactionScope transactionScopeParent = new TransactionScope(TransactionScopeOption.Required, transactionOptions))
{
....
method()
}
method()
{
here i need to check the TransactionScopeOption of this transaction scope's parent one and then set this transaction scope to be having the same TransactionScopeOption.
using (TransactionScope transactionScopeChild = new TransactionScope(TransactionScopeOption.Required, transactionOptions))
}
这可能吗?
【问题讨论】:
标签: transactionscope