Langue

MigrationsScaffolder Classe

Définition

Utilisé pour générer une structure de nouvelles migrations.

public class MigrationsScaffolder
[System.Runtime.CompilerServices.Nullable(0)]
public class MigrationsScaffolder : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsScaffolder
public class MigrationsScaffolder : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsScaffolder
type MigrationsScaffolder = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type MigrationsScaffolder = class
    interface IMigrationsScaffolder
type MigrationsScaffolder = class
    interface IMigrationsScaffolder
Public Class MigrationsScaffolder
Public Class MigrationsScaffolder
Implements IMigrationsScaffolder
Héritage
MigrationsScaffolder
Attributs
Implémente

Remarques

Pour plus d’informations et d’exemples, consultez les migrations de base de données et les services de conception EF Core .

Constructeurs

Nom Description
MigrationsScaffolder(ICurrentDbContext, IModel, IMigrationsAssembly, IMigrationsModelDiffer, IMigrationsIdGenerator, MigrationsCodeGenerator, IHistoryRepository, ILogger<MigrationsScaffolder>, IDatabaseProviderServices)

Utilisé pour générer une structure de nouvelles migrations.

MigrationsScaffolder(MigrationsScaffolderDependencies)

Initialise une nouvelle instance de la classe MigrationsScaffolder.

Propriétés

Nom Description
Dependencies

Dépendances pour ce service.

Méthodes

Nom Description
GetDirectory(String, String, String)

Obtient le répertoire d’un fichier frère. Si ce n’est pas le cas, le répertoire correspondant à l’espace de noms secondaire est utilisé.

GetNamespace(Type, String)

Obtient l’espace de noms d’un type frère. Si ce n’est pas le cas, l’espace de noms par défaut est utilisé.

GetSubNamespace(String, String)

Obtient un sous-espace de noms.

RemoveMigration(String, String, Boolean, Boolean)

Supprime la migration précédente.

RemoveMigration(String, String, Boolean, String, Boolean, Boolean)

Supprime la migration précédente.

RemoveMigration(String, String, Boolean, String, Boolean)

Supprime la migration précédente.

RemoveMigration(String, String, Boolean, String)

Supprime la migration précédente.

RemoveMigration(String, String, Boolean)

Supprime la migration précédente.

Save(String, ScaffoldedMigration, String, Boolean)

Enregistre une migration générée automatiquement dans des fichiers.

Save(String, ScaffoldedMigration, String)

Enregistre une migration générée automatiquement dans des fichiers.

ScaffoldMigration(String, String, String, String, Boolean)

Génère une nouvelle migration.

ScaffoldMigration(String, String, String, String)

Génère une nouvelle migration.

ScaffoldMigration(String, String, String)

Génère une nouvelle migration.

TryGetProjectFile(String, String)

Tente de trouver un fichier sous le répertoire du projet.

S’applique à