Enterprise Library の DAAB (バージョン 4.1) を使用する場合、トランザクションを管理するための推奨される方法を教えてください。私は考えていた
Database NewDb = DatabaseFactory.CreateDatabase();
DBCommand NewCmd = NewDb.GetStoredProcCommand("SProcName");
/* Add parameters here. */
using (TransactionScope NewTrans = new TransactionScope())
{
NewDb.ExecuteNonQuery(NewCmd);
NewTrans.Complete()
}
しかし、正しい方法で行うかどうかはわかりません。