Class AsyncDbConnection
Implements IAsyncDbConnection wrapper over instance with
synchronous implementation of asynchronous methods.
Providers with async operations support could override its methods with asynchronous implementations.
Inheritance
System.Object
AsyncDbConnection
Assembly: linq2db.dll
Syntax
public class AsyncDbConnection : object, IAsyncDbConnection, IAsyncDisposable
Constructors
|
Improve this Doc
View Source
AsyncDbConnection(DbConnection)
Declaration
protected AsyncDbConnection(DbConnection connection)
Parameters
Type |
Name |
Description |
DbConnection |
connection |
|
Properties
|
Improve this Doc
View Source
Connection
Declaration
public virtual DbConnection Connection { get; }
Property Value
Type |
Description |
DbConnection |
|
|
Improve this Doc
View Source
ConnectionString
Declaration
public virtual string ConnectionString { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
State
Declaration
public virtual ConnectionState State { get; }
Property Value
Type |
Description |
ConnectionState |
|
Methods
|
Improve this Doc
View Source
BeginTransaction()
Declaration
public virtual IAsyncDbTransaction BeginTransaction()
Returns
|
Improve this Doc
View Source
BeginTransaction(IsolationLevel)
Declaration
public virtual IAsyncDbTransaction BeginTransaction(IsolationLevel isolationLevel)
Parameters
Type |
Name |
Description |
IsolationLevel |
isolationLevel |
|
Returns
|
Improve this Doc
View Source
BeginTransactionAsync(CancellationToken)
Declaration
public virtual Task<IAsyncDbTransaction> BeginTransactionAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
BeginTransactionAsync(IsolationLevel, CancellationToken)
Declaration
public virtual Task<IAsyncDbTransaction> BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
IsolationLevel |
isolationLevel |
|
CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
Close()
Declaration
public virtual void Close()
|
Improve this Doc
View Source
CloseAsync()
Declaration
public virtual Task CloseAsync()
Returns
|
Improve this Doc
View Source
CreateCommand()
Declaration
public virtual DbCommand CreateCommand()
Returns
Type |
Description |
DbCommand |
|
|
Improve this Doc
View Source
Dispose()
Declaration
public virtual void Dispose()
|
Improve this Doc
View Source
DisposeAsync()
Declaration
public virtual Task DisposeAsync()
Returns
|
Improve this Doc
View Source
Open()
Declaration
public virtual void Open()
|
Improve this Doc
View Source
OpenAsync(CancellationToken)
Declaration
public virtual Task OpenAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
TryClone()
Declaration
public virtual DbConnection? TryClone()
Returns
Type |
Description |
System.Nullable<DbConnection> |
|
Implements
IDisposable
Extension Methods