Mono.Data.Sqlite.SqliteConnection.BeginDbTransaction C# (CSharp) Method

BeginDbTransaction() protected method

Forwards to the local BeginTransaction() function
protected BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction
isolationLevel IsolationLevel Supported isolation levels are Unspecified, Serializable, and ReadCommitted
return System.Data.Common.DbTransaction
    protected override DbTransaction BeginDbTransaction(IsolationLevel isolationLevel)
    {
      if (_connectionState != ConnectionState.Open)
        throw new InvalidOperationException();

      if (isolationLevel == IsolationLevel.Unspecified) isolationLevel = _defaultIsolation;

      if (isolationLevel != IsolationLevel.Serializable && isolationLevel != IsolationLevel.ReadCommitted)
        throw new ArgumentException("isolationLevel");

      return new SqliteTransaction(this, isolationLevel != IsolationLevel.Serializable);
    }