MigrationCodeGenerator.Generate Method (String, IEnumerable<MigrationOperation>, String, String, String, String)
Generates the code that should be added to the users project.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "namespace")] public abstract ScaffoldedMigration Generate( string migrationId, IEnumerable<MigrationOperation> operations, string sourceModel, string targetModel, string namespace, string className )
Parameters
- migrationId
-
Type:
System.String
Unique identifier of the migration.
- operations
-
Type:
System.Collections.Generic.IEnumerable<MigrationOperation>
Operations to be performed by the migration.
- sourceModel
-
Type:
System.String
Source model to be stored in the migration metadata.
- targetModel
-
Type:
System.String
Target model to be stored in the migration metadata.
- namespace
-
Type:
System.String
Namespace that code should be generated in.
- className
-
Type:
System.String
Name of the class that should be generated.