<PackageReference Include="Relativity.Server.Utility.SDK" Version="14.2.7" />

IAsyncContext

public interface IAsyncContext
Represents an asynchronous connection to a database.
string Database { get; }

Gets the database name used by this IAsyncContext.

bool IsMasterDatabase { get; }

Indicates whether or not this IAsyncContext is connected to a master database.

string ServerName { get; }

Gets the server name used by this IAsyncContext.

Asynchronously begins a transaction.

Asynchronously begins a transaction.

Clones this IAsyncContext, returning a new IAsyncContext.

Commits the currently open transaction.

Task ExecuteBulkCopyAsync(IDataReader dataReader, SqlBulkCopyParameters bulkCopyParameters, CancellationToken cancelToken)

Asynchronously executes a bulk copy job from an IDataReader source, using the provided parameters and cancellation token.

Task ExecuteBulkCopyAsync(DataTable dataTable, SqlBulkCopyParameters bulkCopyParameters, CancellationToken cancelToken)

Asynchronously executes a bulk copy job from a DataTable source, using the provided parameters and cancellation token.

Asynchronously executes the provided QueryInformation

Expects to represent a create, update, or delete query.

Asynchronously executes the provided QueryInformation.

Expects to represent a read or query query.

Asynchronously executes the provided QueryInformation, using the provided converter function.

Asynchronously executes the provided QueryInformation, using the provided converter function.

Asynchronously executes the provided QueryInformation, using the provided converter function.

Asynchronously executes the provided QueryInformation, using the provided converter function.

Asynchronously executes the provided QueryInformation. Expects to return exactly one result that can be casted to type T.

Asynchronously gets the underlying database connection of this IAsyncContext.

Asynchronously gets the underlying database connection of this IAsyncContext.

Gets the current transaction being managed.

Releases the connection to the database.

Rolls back the currently open transaction.