MigrationsCodeGenerator MigrationsCodeGenerator Class

Definition

public abstract class MigrationsCodeGenerator
Public MustInherit Class MigrationsCodeGenerator
Inheritance
System.ObjectSystem.Object
MigrationsCodeGeneratorMigrationsCodeGenerator

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Properties

FileExtension FileExtension

public abstract string FileExtension { get; }
Public MustOverride ReadOnly Property FileExtension As String
Value
System.String System.String

Methods

GenerateMetadata(String, Type, String, String, IModel) GenerateMetadata(String, Type, String, String, IModel)

public abstract string GenerateMetadata(string migrationNamespace, Type contextType, string migrationName, string migrationId, IModel targetModel)
Public MustOverride Function GenerateMetadata(migrationNamespace As String, contextType As Type, migrationName As String, migrationId As String, targetModel As IModel) As String
Parameters
migrationNamespace
System.String System.String
contextType
System.Type System.Type
migrationName
System.String System.String
migrationId
System.String System.String
targetModel
IModel IModel
Returns
System.String System.String

GenerateMigration(String, String, IReadOnlyList, IReadOnlyList) GenerateMigration(String, String, IReadOnlyList(Of MigrationOperation), IReadOnlyList(Of MigrationOperation))

public abstract string GenerateMigration(string migrationNamespace, string migrationName, IReadOnlyList<MigrationOperation> upOperations, IReadOnlyList<MigrationOperation> downOperations)
Public MustOverride Function GenerateMigration(migrationNamespace As String, migrationName As String, upOperations As IReadOnlyList(Of MigrationOperation), downOperations As IReadOnlyList(Of MigrationOperation)) As String
Parameters
migrationNamespace
System.String System.String
migrationName
System.String System.String
upOperations
System.Collections.Generic.IReadOnlyList<MigrationOperation> System.Collections.Generic.IReadOnlyList(Of MigrationOperation)
downOperations
System.Collections.Generic.IReadOnlyList<MigrationOperation> System.Collections.Generic.IReadOnlyList(Of MigrationOperation)
Returns
System.String System.String

GenerateSnapshot(String, Type, String, IModel) GenerateSnapshot(String, Type, String, IModel)

public abstract string GenerateSnapshot(string modelSnapshotNamespace, Type contextType, string modelSnapshotName, IModel model)
Public MustOverride Function GenerateSnapshot(modelSnapshotNamespace As String, contextType As Type, modelSnapshotName As String, model As IModel) As String
Parameters
modelSnapshotNamespace
System.String System.String
contextType
System.Type System.Type
modelSnapshotName
System.String System.String
model
IModel IModel
Returns
System.String System.String

GetNamespaces(IModel) GetNamespaces(IModel)

protected virtual IEnumerable<string> GetNamespaces(IModel model)
Protected Overridable Function GetNamespaces(model As IModel) As IEnumerable(Of String)
Parameters
model
IModel IModel
Returns
System.Collections.Generic.IEnumerable<System.String> System.Collections.Generic.IEnumerable(Of System.String)

GetNamespaces(IEnumerable) GetNamespaces(IEnumerable(Of MigrationOperation))

protected virtual IEnumerable<string> GetNamespaces(IEnumerable<MigrationOperation> operations)
Protected Overridable Function GetNamespaces(operations As IEnumerable(Of MigrationOperation)) As IEnumerable(Of String)
Parameters
operations
System.Collections.Generic.IEnumerable<MigrationOperation> System.Collections.Generic.IEnumerable(Of MigrationOperation)
Returns
System.Collections.Generic.IEnumerable<System.String> System.Collections.Generic.IEnumerable(Of System.String)