0
System.Data.SQLite 거래를위한 두 개의 서로 다른 클래스가의 차이는 무엇입니까?SQLite는 : <p>아무도 SQLiteTransaction와 SQLiteTransaction2의 차이를 알고 있나요 SQLiteTransaction 및 SQLiteTransaction2</p> : SQLiteTransaction 및 SQLiteTransaction2
System.Data.SQLite 거래를위한 두 개의 서로 다른 클래스가의 차이는 무엇입니까?SQLite는 : <p>아무도 SQLiteTransaction와 SQLiteTransaction2의 차이를 알고 있나요 SQLiteTransaction 및 SQLiteTransaction2</p> : SQLiteTransaction 및 SQLiteTransaction2
SQLiteTransaction2는 중첩 트랜잭션을 지원하지만 SQLiteTransaction은 지원하지 않습니다. 임베디드 클래스 문서에서
봐 :
//
// Summary:
// SQLite implementation of DbTransaction that does support nested transactions.
public sealed class SQLiteTransaction2 : SQLiteTransaction
{
//
// Summary:
// Commits the current transaction.
public override void Commit();
//
// Summary:
// Attempts to start a transaction. An exception will be thrown if the transaction
// cannot be started for any reason.
//
// Parameters:
// deferredLock:
// TRUE to defer the writelock, or FALSE to lock immediately
protected override void Begin(bool deferredLock);
//
// Summary:
// Disposes the transaction. If it is currently active, any changes are rolled back.
protected override void Dispose(bool disposing);
//
// Summary:
// Issue a ROLLBACK command against the database connection, optionally re-throwing
// any caught exception.
//
// Parameters:
// throwError:
// Non-zero to re-throw caught exceptions.
protected override void IssueRollback(bool throwError);
}