Share via


MigrationsScaffolder Classe

Définition

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

public class MigrationsScaffolder
public class MigrationsScaffolder : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsScaffolder
type MigrationsScaffolder = class
type MigrationsScaffolder = class
    interface IMigrationsScaffolder
Public Class MigrationsScaffolder
Public Class MigrationsScaffolder
Implements IMigrationsScaffolder
Héritage
MigrationsScaffolder
Implémente

Remarques

Pour plus d’informations et d’exemples, consultez Migrations de bases de données et services de conception EF Core .

Constructeurs

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

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

MigrationsScaffolder(MigrationsScaffolderDependencies)

Initialise une nouvelle instance de la classe MigrationsScaffolder.

Propriétés

Dependencies

Dépendances pour ce service.

Méthodes

GetDirectory(String, String, String)

Obtient le répertoire d’un fichier frère. Si aucun n’est, le répertoire correspondant au sous-espace de noms est utilisé.

GetNamespace(Type, String)

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

GetSubNamespace(String, String)

Obtient un sous-espace de noms.

RemoveMigration(String, String, Boolean)

Supprime la migration précédente.

RemoveMigration(String, String, Boolean, String)

Supprime la migration précédente.

Save(String, ScaffoldedMigration, String)

Enregistre une migration avec structure vers des fichiers.

ScaffoldMigration(String, String, String)

Génère une nouvelle migration.

ScaffoldMigration(String, 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 à