Share via


RelationalTransactionFactory Class

Definition

A factory for creating RelationalTransaction instances.

This type is typically used by database providers. It is generally not used in application code.

public class RelationalTransactionFactory : Microsoft.EntityFrameworkCore.Storage.IRelationalTransactionFactory
type RelationalTransactionFactory = class
    interface IRelationalTransactionFactory
Public Class RelationalTransactionFactory
Implements IRelationalTransactionFactory
Inheritance
RelationalTransactionFactory
Implements

Remarks

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

See Implementation of database providers and extensions for more information and examples.

Constructors

RelationalTransactionFactory(RelationalTransactionFactoryDependencies)

Initializes a new instance of the RelationalTransactionFactory class.

Properties

Dependencies

Relational provider-specific dependencies for this service.

Methods

Create(IRelationalConnection, DbTransaction, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)

Creates a RelationalTransaction instance.

Create(IRelationalConnection, DbTransaction, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, Boolean)

Creates a RelationalTransaction instance.

Applies to