MigrationsCodeGenerator MigrationsCodeGenerator Class

Syntax

Declaration

public abstract class MigrationsCodeGeneratorPublic MustInherit Class MigrationsCodeGenerator

Inheritance Hierarchy

  • System.Object
    System.Object
  • MigrationsCodeGenerator
    MigrationsCodeGenerator

Inherited Members

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

Properties summary

Methods summary

Properties

  • FileExtension
    FileExtension
    public abstract string FileExtension { get; }Public MustOverride 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 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

    Returns

    • System.String
      System.String
  • GenerateMigration(String, String, IReadOnlyList<MigrationOperation>, IReadOnlyList<MigrationOperation>)
    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<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 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

    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

    Returns

    • System.Collections.Generic.IEnumerable<T><System.String>
      System.Collections.Generic.IEnumerable<T>(Of System.String)
  • GetNamespaces(IEnumerable<MigrationOperation>)
    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

    Returns

    • System.Collections.Generic.IEnumerable<T><System.String>
      System.Collections.Generic.IEnumerable<T>(Of System.String)

Details

Assembly

Microsoft.EntityFrameworkCore.Design.dll