Idioma

ISnapshotModelProcessor Interface

Definition

A service used to process a model loaded from a Migrations snapshot, applying fix-ups for the version of EF Core that created the snapshot. Database providers can register a replacement implementation to apply additional provider-specific fix-ups.

public interface ISnapshotModelProcessor
type ISnapshotModelProcessor = interface
Public Interface ISnapshotModelProcessor
Derived

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 Database migrations for more information and examples.

Methods

Name Description
Process(IReadOnlyModel, Boolean)

Processes the model, applying any fix-ups needed for the version of EF Core that created the snapshot.

Applies to