Share via


CSharpMigrationsGenerator.GenerateMetadata Method

Definition

Generates the migration metadata code.

public override string GenerateMetadata (string migrationNamespace, Type contextType, string migrationName, string migrationId, Microsoft.EntityFrameworkCore.Metadata.IModel targetModel);
public override string GenerateMetadata (string? migrationNamespace, Type contextType, string migrationName, string migrationId, Microsoft.EntityFrameworkCore.Metadata.IModel targetModel);
override this.GenerateMetadata : string * Type * string * string * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Public Overrides 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.

Applies to