Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A service representing an assembly containing EF Core Migrations.
public interface IMigrationsAssembly
type IMigrationsAssembly = interface
Public Interface IMigrationsAssembly
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.
The assembly that contains the migrations, snapshot, etc.
A dictionary mapping migration identifiers to the TypeInfo of the class that represents the migration.
The snapshot of the IModel contained in the assembly.
Creates an instance of the migration class.
Finds a migration identifier in the assembly with the given a full migration name or just its identifier.
Gets a migration identifier in the assembly with the given a full migration name or just its identifier.