Table of Contents

Class MigrationsAssemblyExtensions

Namespace
Microsoft.EntityFrameworkCore.Migrations
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Extension methods for IMigrationsAssembly.

public static class MigrationsAssemblyExtensions
Inheritance
MigrationsAssemblyExtensions
Inherited Members

Methods

GetMigrationId(IMigrationsAssembly, string)

Gets a migration identifier in the assembly with the given a full migration name or just its identifier.

An exception is thrown if the migration was not found--use FindMigrationId(string) if the migration may not exist.

public static string GetMigrationId(this IMigrationsAssembly assembly, string nameOrId)

Parameters

assembly IMigrationsAssembly

The assembly.

nameOrId string

The name or identifier to lookup.

Returns

string

The identifier of the migration.