RelationalExecutionStrategyFactory Class

Definition

Factory for creating IExecutionStrategy instances for use with relational database providers.

public class RelationalExecutionStrategyFactory : Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory
type RelationalExecutionStrategyFactory = class
    interface IExecutionStrategyFactory
Public Class RelationalExecutionStrategyFactory
Implements IExecutionStrategyFactory
Inheritance
RelationalExecutionStrategyFactory
Implements

Remarks

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

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

Constructors

RelationalExecutionStrategyFactory(ExecutionStrategyDependencies)

Creates a new instance of this class with the given service dependencies.

Properties

Dependencies

Dependencies for this service.

Methods

Create()

Creates an IExecutionStrategy for the current database provider.

CreateDefaultStrategy(ExecutionStrategyDependencies)

Creates or returns a cached instance of the default IExecutionStrategy for the current database provider.

Applies to