Share via


IModificationCommandFactory Interface

Definition

A service for creating IModificationCommand instances.

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

public interface IModificationCommandFactory
type IModificationCommandFactory = interface
Public Interface IModificationCommandFactory

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.

Methods

CreateModificationCommand(ModificationCommandParameters)

Creates a new database CUD command.

CreateNonTrackedModificationCommand(NonTrackedModificationCommandParameters)

Creates a new database CUD command.

Applies to