CSharpMigrationsGenerator CSharpMigrationsGenerator Class

Definition

public class CSharpMigrationsGenerator : MigrationsCodeGenerator
Public Class CSharpMigrationsGenerator
    Inherits MigrationsCodeGenerator
Inheritance
System.ObjectSystem.Object
CSharpMigrationsGeneratorCSharpMigrationsGenerator

Constructors

CSharpMigrationsGenerator(CSharpHelper, CSharpMigrationOperationGenerator, CSharpSnapshotGenerator) CSharpMigrationsGenerator(CSharpHelper, CSharpMigrationOperationGenerator, CSharpSnapshotGenerator)

public CSharpMigrationsGenerator(CSharpHelper codeHelper, CSharpMigrationOperationGenerator operationGenerator, CSharpSnapshotGenerator modelGenerator)
Public Sub New(codeHelper As CSharpHelper, operationGenerator As CSharpMigrationOperationGenerator, modelGenerator As CSharpSnapshotGenerator)
Parameters

Properties

FileExtension FileExtension

public override string FileExtension { get; }
Public Overrides ReadOnly Property FileExtension As String
Value
System.String System.String
Overrides

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

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

public override string GenerateMetadata(string migrationNamespace, Type contextType, string migrationName, string migrationId, IModel targetModel)
Public Overrides 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
Overrides

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

public override string GenerateMigration(string migrationNamespace, string migrationName, IReadOnlyList<MigrationOperation> upOperations, IReadOnlyList<MigrationOperation> downOperations)
Public Overrides 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
Overrides

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

public override string GenerateSnapshot(string modelSnapshotNamespace, Type contextType, string modelSnapshotName, IModel model)
Public Overrides 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
Overrides

GetHashCode() GetHashCode()

Inherited from System.Object

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

Inherited from MigrationsCodeGenerator

GetNamespaces(IModel) GetNamespaces(IModel)

Inherited from MigrationsCodeGenerator

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object