IMigrationsCodeGenerator Interface
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.
Used to generate code for migrations.
public interface IMigrationsCodeGenerator
public interface IMigrationsCodeGenerator : Microsoft.EntityFrameworkCore.Design.ILanguageBasedService
type IMigrationsCodeGenerator = interface
type IMigrationsCodeGenerator = interface
interface ILanguageBasedService
Public Interface IMigrationsCodeGenerator
Public Interface IMigrationsCodeGenerator
Implements ILanguageBasedService
- Derived
- Implements
Remarks
See Database migrations, and EF Core design-time services for more information and examples.
Properties
FileExtension |
Gets the file extension code files should use. |
Language |
Gets the programming language supported by this service. (Inherited from ILanguageBasedService) |
Methods
GenerateMetadata(String, Type, String, String, IModel) |
Generates the migration metadata code. |
GenerateMigration(String, String, IReadOnlyList<MigrationOperation>, IReadOnlyList<MigrationOperation>) |
Generates the migration code. |
GenerateSnapshot(String, Type, String, IModel) |
Generates the model snapshot code. |
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