MigrationsScaffolder 构造函数

定义

重载

MigrationsScaffolder(MigrationsScaffolderDependencies)

初始化 MigrationsScaffolder 类的新实例。

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

MigrationsScaffolder(MigrationsScaffolderDependencies)

Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs

初始化 MigrationsScaffolder 类的新实例。

public MigrationsScaffolder (Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies dependencies);
new Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder : Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder
Public Sub New (dependencies As MigrationsScaffolderDependencies)

参数

dependencies
MigrationsScaffolderDependencies

依赖项。

适用于

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

public MigrationsScaffolder (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly migrationsAssembly, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator idGenerator, Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsCodeGenerator migrationCodeGenerator, Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository historyRepository, Microsoft.Extensions.Logging.ILogger<Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder> logger, Microsoft.EntityFrameworkCore.Storage.IDatabaseProviderServices providerServices);
new Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator * Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsCodeGenerator * Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository * Microsoft.Extensions.Logging.ILogger<Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder> * Microsoft.EntityFrameworkCore.Storage.IDatabaseProviderServices -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder
Public Sub New (currentContext As ICurrentDbContext, model As IModel, migrationsAssembly As IMigrationsAssembly, modelDiffer As IMigrationsModelDiffer, idGenerator As IMigrationsIdGenerator, migrationCodeGenerator As MigrationsCodeGenerator, historyRepository As IHistoryRepository, logger As ILogger(Of MigrationsScaffolder), providerServices As IDatabaseProviderServices)

参数

currentContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext
model
IModel
migrationsAssembly
IMigrationsAssembly
migrationCodeGenerator
MigrationsCodeGenerator
historyRepository
IHistoryRepository
providerServices
IDatabaseProviderServices

适用于