ISqlServerConnection ISqlServerConnection Interface

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public interface ISqlServerConnection : IRelationalConnection, IRelationalTransactionManager, IDbContextTransactionManager, IDisposable
Public Interface ISqlServerConnection
    Inherits IRelationalConnection

Methods

BeginTransaction() BeginTransaction()

Begins a new transaction.

(Inherited from IDbContextTransactionManager)

BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel)

Begins a new transaction.

(Inherited from IRelationalTransactionManager)

BeginTransactionAsync(CancellationToken) BeginTransactionAsync(CancellationToken)

Asynchronously begins a new transaction.

(Inherited from IDbContextTransactionManager)

BeginTransactionAsync(IsolationLevel, CancellationToken) BeginTransactionAsync(IsolationLevel, CancellationToken)

Asynchronously begins a new transaction.

(Inherited from IRelationalTransactionManager)

Close() Close()

Closes the connection to the database.

(Inherited from IRelationalConnection)

CommitTransaction() CommitTransaction()

Commits all changes made to the database in the current transaction.

(Inherited from IDbContextTransactionManager)

CreateMasterConnection() CreateMasterConnection()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ISqlServerConnection CreateMasterConnection()
Function CreateMasterConnection As ISqlServerConnection
Returns

Dispose() Dispose()

Inherited from System.IDisposable

Open() Open()

Opens the connection to the database.

(Inherited from IRelationalConnection)

OpenAsync(CancellationToken) OpenAsync(CancellationToken)

Asynchronously opens the connection to the database.

(Inherited from IRelationalConnection)

RollbackTransaction() RollbackTransaction()

Discards all changes made to the database in the current transaction.

(Inherited from IDbContextTransactionManager)

UseTransaction(DbTransaction) UseTransaction(DbTransaction)

Specifies an existing System.Data.Common.DbTransaction to be used for database operations.

(Inherited from IRelationalTransactionManager)

Properties

ActiveCursor ActiveCursor

Gets or sets the active cursor.

(Inherited from IRelationalConnection)

CommandTimeout CommandTimeout

Gets the timeout for executing a command against the database.

(Inherited from IRelationalConnection)

ConnectionString ConnectionString

Gets the connection string for the database.

(Inherited from IRelationalConnection)

CurrentTransaction CurrentTransaction

Gets the current transaction.

(Inherited from IDbContextTransactionManager)

DbConnection DbConnection

Gets the underlying System.Data.Common.DbConnection used to connect to the database.

(Inherited from IRelationalConnection)

IsMultipleActiveResultSetsEnabled IsMultipleActiveResultSetsEnabled

Gets a value indicating whether the multiple active result sets feature is enabled.

(Inherited from IRelationalConnection)