Table of Contents

Class MigrationsAssembly

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

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class MigrationsAssembly : IMigrationsAssembly
Inheritance
MigrationsAssembly
Implements
Inherited Members
Extension Methods

Constructors

MigrationsAssembly(ICurrentDbContext, IDbContextOptions, IMigrationsIdGenerator, IDiagnosticsLogger<Migrations>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public MigrationsAssembly(ICurrentDbContext currentContext, IDbContextOptions options, IMigrationsIdGenerator idGenerator, IDiagnosticsLogger<DbLoggerCategory.Migrations> logger)

Parameters

currentContext ICurrentDbContext
options IDbContextOptions
idGenerator IMigrationsIdGenerator
logger IDiagnosticsLogger<Migrations>

Properties

Assembly

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual Assembly Assembly { get; }

Property Value

Assembly

Migrations

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IReadOnlyDictionary<string, TypeInfo> Migrations { get; }

Property Value

IReadOnlyDictionary<string, TypeInfo>

ModelSnapshot

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual ModelSnapshot? ModelSnapshot { get; }

Property Value

ModelSnapshot

Methods

CreateMigration(TypeInfo, string)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual Migration CreateMigration(TypeInfo migrationClass, string activeProvider)

Parameters

migrationClass TypeInfo
activeProvider string

Returns

Migration

FindMigrationId(string)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual string? FindMigrationId(string nameOrId)

Parameters

nameOrId string

Returns

string