95 references to IsolationLevel
netstandard (1)
netstandard.cs (1)
549[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.IsolationLevel))]
System.Data (1)
src\runtime\src\libraries\shims\System.Data\ref\System.Data.cs (1)
115[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.IsolationLevel))]
System.Data.Common (11)
System\Data\Common\DbConnection.cs (8)
51protected abstract DbTransaction BeginDbTransaction(IsolationLevel isolationLevel); 54BeginDbTransaction(IsolationLevel.Unspecified); 56public DbTransaction BeginTransaction(IsolationLevel isolationLevel) 62BeginDbTransaction(IsolationLevel.Unspecified); 64IDbTransaction IDbConnection.BeginTransaction(IsolationLevel isolationLevel) => 67protected virtual ValueTask<DbTransaction> BeginDbTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken) 85=> BeginDbTransactionAsync(IsolationLevel.Unspecified, cancellationToken); 87public ValueTask<DbTransaction> BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken = default)
System\Data\Common\DbTransaction.cs (1)
19public abstract IsolationLevel IsolationLevel { get; }
System\Data\IDbConnection.cs (1)
16IDbTransaction BeginTransaction(IsolationLevel il);
System\Data\IDbTransaction.cs (1)
9IsolationLevel IsolationLevel { get; }
System.Data.Odbc (53)
Common\System\Data\Common\AdapterUtil.Odbc.cs (9)
121internal static ArgumentOutOfRangeException InvalidIsolationLevel(IsolationLevel value) 126case IsolationLevel.Unspecified: 127case IsolationLevel.Chaos: 128case IsolationLevel.ReadUncommitted: 129case IsolationLevel.ReadCommitted: 130case IsolationLevel.RepeatableRead: 131case IsolationLevel.Serializable: 132case IsolationLevel.Snapshot: 137return InvalidEnumerationValue(typeof(IsolationLevel), (int)value);
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionClosed.cs (1)
19public override DbTransaction BeginTransaction(IsolationLevel il) => throw ADP.ClosedConnectionError();
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionInternal.cs (1)
185public abstract DbTransaction BeginTransaction(IsolationLevel il);
System\Data\Odbc\Odbc32.cs (9)
56internal static ArgumentOutOfRangeException NotSupportedIsolationLevel(IsolationLevel value) 61case IsolationLevel.Unspecified: 62case IsolationLevel.ReadUncommitted: 63case IsolationLevel.ReadCommitted: 64case IsolationLevel.RepeatableRead: 65case IsolationLevel.Serializable: 66case IsolationLevel.Snapshot: 69case IsolationLevel.Chaos: 76return ODBC.NotSupportedEnumerationValue(typeof(IsolationLevel), (int)value);
System\Data\Odbc\OdbcConnection.cs (11)
288return BeginTransaction(IsolationLevel.Unspecified); 291public new OdbcTransaction BeginTransaction(IsolationLevel isolevel) 883protected override DbTransaction BeginDbTransaction(IsolationLevel isolationLevel) 896internal OdbcTransaction Open_BeginTransaction(IsolationLevel isolevel) 910case IsolationLevel.Unspecified: 911case IsolationLevel.ReadUncommitted: 912case IsolationLevel.ReadCommitted: 913case IsolationLevel.RepeatableRead: 914case IsolationLevel.Serializable: 915case IsolationLevel.Snapshot: 917case IsolationLevel.Chaos:
System\Data\Odbc\OdbcConnectionHandle.cs (9)
77internal ODBC32.SQLRETURN BeginTransaction(ref IsolationLevel isolevel) 81if (IsolationLevel.Unspecified != isolevel) 86case IsolationLevel.ReadUncommitted: 90case IsolationLevel.ReadCommitted: 94case IsolationLevel.RepeatableRead: 98case IsolationLevel.Serializable: 102case IsolationLevel.Snapshot: 107case IsolationLevel.Chaos: 123isolevel = IsolationLevel.Unspecified;
System\Data\Odbc\OdbcConnectionOpen.cs (2)
45public override DbTransaction BeginTransaction(IsolationLevel isolevel) 50internal OdbcTransaction BeginOdbcTransaction(IsolationLevel isolevel)
System\Data\Odbc\OdbcTransaction.cs (11)
11private IsolationLevel _isolevel = IsolationLevel.Unspecified; 14internal OdbcTransaction(OdbcConnection connection, IsolationLevel isolevel, OdbcConnectionHandle handle) 37public override IsolationLevel IsolationLevel 50if (IsolationLevel.Unspecified == _isolevel) 56ODBC32.SQL_TRANSACTION.READ_UNCOMMITTED => IsolationLevel.ReadUncommitted, 57ODBC32.SQL_TRANSACTION.READ_COMMITTED => IsolationLevel.ReadCommitted, 58ODBC32.SQL_TRANSACTION.REPEATABLE_READ => IsolationLevel.RepeatableRead, 59ODBC32.SQL_TRANSACTION.SERIALIZABLE => IsolationLevel.Serializable, 60ODBC32.SQL_TRANSACTION.SNAPSHOT => IsolationLevel.Snapshot, 137_isolevel = IsolationLevel.Unspecified;
System.Data.OleDb (29)
OleDbConnection.cs (3)
316return BeginTransaction(IsolationLevel.Unspecified); 319public new OleDbTransaction BeginTransaction(IsolationLevel isolationLevel) 375protected override DbTransaction BeginDbTransaction(IsolationLevel isolationLevel)
OleDbConnectionInternal.cs (2)
254public override DbTransaction BeginTransaction(IsolationLevel isolationLevel) 339transactionJoin.Value.JoinTransaction(oleTxTransaction, (int)IsolationLevel.Unspecified, 0, IntPtr.Zero);
OleDbTransaction.cs (13)
17private readonly System.Data.IsolationLevel _isolationLevel; 118internal OleDbTransaction(OleDbConnection connection, OleDbTransaction? transaction, IsolationLevel isolevel) 125case IsolationLevel.Unspecified: // OLE DB doesn't support this isolevel on local transactions 126isolevel = IsolationLevel.ReadCommitted; 128case IsolationLevel.Chaos: 129case IsolationLevel.ReadUncommitted: 130case IsolationLevel.ReadCommitted: 131case IsolationLevel.RepeatableRead: 132case IsolationLevel.Serializable: 133case IsolationLevel.Snapshot: 157public override IsolationLevel IsolationLevel 177public OleDbTransaction Begin(IsolationLevel isolevel) 210return Begin(IsolationLevel.ReadCommitted);
System\Data\Common\AdapterUtil.cs (9)
294internal static ArgumentOutOfRangeException InvalidIsolationLevel(IsolationLevel value) 299case IsolationLevel.Unspecified: 300case IsolationLevel.Chaos: 301case IsolationLevel.ReadUncommitted: 302case IsolationLevel.ReadCommitted: 303case IsolationLevel.RepeatableRead: 304case IsolationLevel.Serializable: 305case IsolationLevel.Snapshot: 310return InvalidEnumerationValue(typeof(IsolationLevel), (int)value);
System\Data\ProviderBase\DbConnectionClosed.cs (1)
31public override DbTransaction BeginTransaction(IsolationLevel il)
System\Data\ProviderBase\DbConnectionInternal.Shared.cs (1)
303public abstract DbTransaction BeginTransaction(IsolationLevel il);