MigrationsCodeGenerator.GenerateMetadata Method
Definition
Important
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.
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.
- 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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework