IMigrationsModelDiffer Interface

Definition

A service for finding differences between two IRelationalModels and transforming those differences into MigrationOperations that can be used to update the database.

public interface IMigrationsModelDiffer
type IMigrationsModelDiffer = interface
Public Interface IMigrationsModelDiffer

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

GetDifferences(IModel, IModel)

Finds the differences between two models.

GetDifferences(IRelationalModel, IRelationalModel)

Finds the differences between two models.

HasDifferences(IModel, IModel)

Checks whether or not there are differences between the two models.

HasDifferences(IRelationalModel, IRelationalModel)

Checks whether there are differences between the two models.

Applies to