MigrationsCodeGenerator.GenerateMetadata Method

Definition

Generates the migration metadata code.

public abstract string GenerateMetadata (string migrationNamespace, Type contextType, string migrationName, string migrationId, Microsoft.EntityFrameworkCore.Metadata.IModel targetModel);
public abstract string GenerateMetadata (string? migrationNamespace, Type contextType, string migrationName, string migrationId, Microsoft.EntityFrameworkCore.Metadata.IModel targetModel);
abstract member GenerateMetadata : string * Type * string * string * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Public MustOverride Function GenerateMetadata (migrationNamespace As String, contextType As Type, migrationName As String, migrationId As String, targetModel As IModel) As String

Parameters

migrationNamespace
String

The migration's namespace.

contextType
Type

The migration's DbContext type.

migrationName
String

The migration's name.

migrationId
String

The migration's ID.

targetModel
IModel

The migration's target model.

Returns

The migration metadata code.

Implements

Applies to