MigrationsScaffolder 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MigrationsScaffolder(MigrationsScaffolderDependencies)
初始化 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
- modelDiffer
- IMigrationsModelDiffer
- idGenerator
- IMigrationsIdGenerator
- migrationCodeGenerator
- MigrationsCodeGenerator
- historyRepository
- IHistoryRepository
- logger
- ILogger<MigrationsScaffolder>
- providerServices
- IDatabaseProviderServices