Table of Contents

Interface IModificationCommandFactory

Namespace
Microsoft.EntityFrameworkCore.Update
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

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

Remarks

The service lifetime is Singleton. This means a single instance is used by many Microsoft.EntityFrameworkCore.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(in ModificationCommandParameters)

Creates a new database CUD command.

IModificationCommand CreateModificationCommand(in ModificationCommandParameters modificationCommandParameters)

Parameters

modificationCommandParameters ModificationCommandParameters

The creation parameters.

Returns

IModificationCommand

A new IModificationCommand instance.

CreateNonTrackedModificationCommand(in NonTrackedModificationCommandParameters)

Creates a new database CUD command.

INonTrackedModificationCommand CreateNonTrackedModificationCommand(in NonTrackedModificationCommandParameters modificationCommandParameters)

Parameters

modificationCommandParameters NonTrackedModificationCommandParameters

The creation parameters.

Returns

INonTrackedModificationCommand

A new INonTrackedModificationCommand instance.