MigrationsScaffolderDependencies.With 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
With(IMigrator) |
複製此相依性參數物件,並取代一個服務。 |
With(IMigrationsModelDiffer) |
複製此相依性參數物件,並取代一個服務。 |
With(IMigrationsIdGenerator) |
複製此相依性參數物件,並取代一個服務。 |
With(IMigrationsAssembly) |
複製此相依性參數物件,並取代一個服務。 |
With(IHistoryRepository) |
複製此相依性參數物件,並取代一個服務。 |
With(IModel) |
複製此相依性參數物件,並取代一個服務。 |
With(IMigrationsCodeGenerator) |
已淘汰.
複製此相依性參數物件,並取代一個服務。 |
With(ISnapshotModelProcessor) |
複製此相依性參數物件,並取代一個服務。 |
With(ICurrentDbContext) |
複製此相依性參數物件,並取代一個服務。 |
With(ICurrentDbContext) |
複製此相依性參數物件,並取代一個服務。 |
With(IOperationReporter) |
複製此相依性參數物件,並取代一個服務。 |
With(IMigrationsCodeGeneratorSelector) |
複製此相依性參數物件,並取代一個服務。 |
With(IDatabaseProvider) |
複製此相依性參數物件,並取代一個服務。 |
With(IMigrator)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrator As IMigrator) As MigrationsScaffolderDependencies
參數
- migrator
- IMigrator
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IMigrationsModelDiffer)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer migrationsModelDiffer);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsModelDiffer As IMigrationsModelDiffer) As MigrationsScaffolderDependencies
參數
- migrationsModelDiffer
- IMigrationsModelDiffer
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IMigrationsIdGenerator)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator migrationsIdGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsIdGenerator As IMigrationsIdGenerator) As MigrationsScaffolderDependencies
參數
- migrationsIdGenerator
- IMigrationsIdGenerator
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IMigrationsAssembly)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly migrationsAssembly);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsAssembly As IMigrationsAssembly) As MigrationsScaffolderDependencies
參數
- migrationsAssembly
- IMigrationsAssembly
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IHistoryRepository)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository historyRepository);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (historyRepository As IHistoryRepository) As MigrationsScaffolderDependencies
參數
- historyRepository
- IHistoryRepository
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IModel)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Metadata.IModel model);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (model As IModel) As MigrationsScaffolderDependencies
參數
- model
- IModel
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IMigrationsCodeGenerator)
警告
Use an MigrationCodeGeneratorSelector instead.
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator migrationCodeGenerator);
[System.Obsolete("Use an MigrationCodeGeneratorSelector instead.")]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator migrationCodeGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<System.Obsolete("Use an MigrationCodeGeneratorSelector instead.")>]
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationCodeGenerator As IMigrationsCodeGenerator) As MigrationsScaffolderDependencies
參數
- migrationCodeGenerator
- IMigrationsCodeGenerator
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
- 屬性
適用於
With(ISnapshotModelProcessor)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
member this.With : Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (snapshotModelProcessor As ISnapshotModelProcessor) As MigrationsScaffolderDependencies
參數
- snapshotModelProcessor
- Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
- 屬性
適用於
With(ICurrentDbContext)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentDbContext);
member this.With : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (currentDbContext As ICurrentDbContext) As MigrationsScaffolderDependencies
參數
- currentDbContext
- Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(ICurrentDbContext)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (currentContext As ICurrentDbContext) As MigrationsScaffolderDependencies
參數
- currentContext
- ICurrentDbContext
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IOperationReporter)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter);
member this.With : Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
member this.With : Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (operationReporter As IOperationReporter) As MigrationsScaffolderDependencies
參數
- operationReporter
- Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
- 屬性
適用於
With(IMigrationsCodeGeneratorSelector)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector migrationsCodeGeneratorSelector);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsCodeGeneratorSelector As IMigrationsCodeGeneratorSelector) As MigrationsScaffolderDependencies
參數
- migrationsCodeGeneratorSelector
- IMigrationsCodeGeneratorSelector
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IDatabaseProvider)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider databaseProvider);
member this.With : Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (databaseProvider As IDatabaseProvider) As MigrationsScaffolderDependencies
參數
- databaseProvider
- IDatabaseProvider
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。