CSharpMigrationsGenerator Class
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 C# code for migrations.
public class CSharpMigrationsGenerator : Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsCodeGenerator
type CSharpMigrationsGenerator = class
inherit MigrationsCodeGenerator
Public Class CSharpMigrationsGenerator
Inherits MigrationsCodeGenerator
- Inheritance
See Database migrations, and EF Core design-time services for more information and examples.
CSharp |
Dependencies for this service. |
Dependencies |
Dependencies for this service. (Inherited from MigrationsCodeGenerator) |
File |
Gets the file extension code files should use. |
Language |
Gets the programming language supported by this service. |
Language |
Gets the programming language supported by this service. (Inherited from MigrationsCodeGenerator) |
Generate |
Generates the migration metadata code. |
Generate |
Generates the migration code. |
Generate |
Generates the model snapshot code. |
Get |
Gets the namespaces required for a list of MigrationOperation objects. (Inherited from MigrationsCodeGenerator) |
Get |
Gets the namespaces required for an IModel. (Inherited from MigrationsCodeGenerator) |
Product | Versions |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: