IMigrationsCodeGenerator.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 string GenerateMetadata (string migrationNamespace, Type contextType, string migrationName, string migrationId, Microsoft.EntityFrameworkCore.Metadata.IModel targetModel);
public 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 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.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework