CSharpMigrationsGenerator CSharpMigrationsGenerator Class

Syntax

Declaration

public class CSharpMigrationsGenerator : MigrationsCodeGeneratorPublic Class CSharpMigrationsGenerator
    Inherits MigrationsCodeGenerator

Inheritance Hierarchy

Inherited Members

GetNamespaces(IEnumerable<MigrationOperation>),
GetNamespaces(IEnumerable(Of MigrationOperation)),
GetNamespaces(IModel),
GetNamespaces(IModel),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Properties summary

Methods summary

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

    Property Value

    • System.String
      System.String

Methods

  • 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

    Returns

    • System.String
      System.String
  • GenerateMigration(String, String, IReadOnlyList<MigrationOperation>, IReadOnlyList<MigrationOperation>)
    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<T><MigrationOperation>
      System.Collections.Generic.IReadOnlyList<T>(Of MigrationOperation)
    • downOperations
      System.Collections.Generic.IReadOnlyList<T><MigrationOperation>
      System.Collections.Generic.IReadOnlyList<T>(Of MigrationOperation)

    Returns

    • System.String
      System.String
  • 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

    Returns

    • System.String
      System.String

Details

Assembly

Microsoft.EntityFrameworkCore.Design.dll