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
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。