HistoryRepositoryDependencies.With 方法

定义

重载

With(IRelationalDatabaseCreator)

克隆此依赖项参数对象,并替换了一个服务。

With(IRelationalConnection)

克隆此依赖项参数对象,并替换了一个服务。

With(IRawSqlCommandBuilder)

克隆此依赖项参数对象,并替换了一个服务。

With(IMigrationsSqlGenerator)

克隆此依赖项参数对象,并替换了一个服务。

With(IMigrationsModelDiffer)

克隆此依赖项参数对象,并替换了一个服务。

With(ICoreConventionSetBuilder)

克隆此依赖项参数对象,并替换了一个服务。

With(ModelDependencies)

克隆此依赖项参数对象,并替换了一个服务。

With(IConventionSetBuilder)

克隆此依赖项参数对象,并替换了一个服务。

With(IRelationalTypeMappingSource)

克隆此依赖项参数对象,并替换了一个服务。

With(IDbContextOptions)

克隆此依赖项参数对象,并替换了一个服务。

With(ICurrentDbContext)

克隆此依赖项参数对象,并替换了一个服务。

With(IDiagnosticsLogger<DbLoggerCategory.Model>)
已过时.

克隆此依赖项参数对象,并替换了一个服务。

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

克隆此依赖项参数对象,并替换了一个服务。

With(IConventionSetBuilder)

克隆此依赖项参数对象,并替换了一个服务。

With(ISqlGenerationHelper)

克隆此依赖项参数对象,并替换了一个服务。

With(IRelationalDatabaseCreator)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalDatabaseCreator databaseCreator);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalDatabaseCreator -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (databaseCreator As IRelationalDatabaseCreator) As HistoryRepositoryDependencies

参数

databaseCreator
IRelationalDatabaseCreator

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(IRelationalConnection)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (connection As IRelationalConnection) As HistoryRepositoryDependencies

参数

connection
IRelationalConnection

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(IRawSqlCommandBuilder)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.IRawSqlCommandBuilder rawSqlCommandBuilder);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRawSqlCommandBuilder -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (rawSqlCommandBuilder As IRawSqlCommandBuilder) As HistoryRepositoryDependencies

参数

rawSqlCommandBuilder
IRawSqlCommandBuilder

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(IMigrationsSqlGenerator)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (migrationsSqlGenerator As IMigrationsSqlGenerator) As HistoryRepositoryDependencies

参数

migrationsSqlGenerator
IMigrationsSqlGenerator

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(IMigrationsModelDiffer)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (modelDiffer As IMigrationsModelDiffer) As HistoryRepositoryDependencies

参数

modelDiffer
IMigrationsModelDiffer

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(ICoreConventionSetBuilder)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder coreConventionSetBuilder);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (coreConventionSetBuilder As ICoreConventionSetBuilder) As HistoryRepositoryDependencies

参数

coreConventionSetBuilder
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder

创建模型时要使用的核心约定集。

返回

替换了给定服务的新参数对象。

适用于

With(ModelDependencies)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (modelDependencies As ModelDependencies) As HistoryRepositoryDependencies

参数

modelDependencies
ModelDependencies

创建模型时要使用的核心约定集。

返回

替换了给定服务的新参数对象。

适用于

With(IConventionSetBuilder)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (conventionSetBuilder As IConventionSetBuilder) As HistoryRepositoryDependencies

参数

conventionSetBuilder
IConventionSetBuilder

创建模型时要使用的核心约定集。

返回

替换了给定服务的新参数对象。

适用于

With(IRelationalTypeMappingSource)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (typeMappingSource As IRelationalTypeMappingSource) As HistoryRepositoryDependencies

参数

typeMappingSource
IRelationalTypeMappingSource

类型映射器。

返回

替换了给定服务的新参数对象。

适用于

With(IDbContextOptions)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions options);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (options As IDbContextOptions) As HistoryRepositoryDependencies

参数

options
IDbContextOptions

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(ICurrentDbContext)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (currentContext As ICurrentDbContext) As HistoryRepositoryDependencies

参数

currentContext
ICurrentDbContext

类型映射器。

返回

替换了给定服务的新参数对象。

适用于

With(IDiagnosticsLogger<DbLoggerCategory.Model>)

注意

现已弃用此 API。

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> modelLogger);
[System.Obsolete]
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> modelLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
[<System.Obsolete>]
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (modelLogger As IDiagnosticsLogger(Of DbLoggerCategory.Model)) As HistoryRepositoryDependencies

参数

modelLogger
IDiagnosticsLogger<DbLoggerCategory.Model>

类型映射器。

返回

替换了给定服务的新参数对象。

属性

适用于

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As HistoryRepositoryDependencies

参数

commandLogger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

命令记录器。

返回

替换了给定服务的新参数对象。

适用于

With(IConventionSetBuilder)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (conventionSetBuilder As IConventionSetBuilder) As HistoryRepositoryDependencies

参数

conventionSetBuilder
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder

创建模型时要使用的约定集。

返回

替换了给定服务的新参数对象。

适用于

With(ISqlGenerationHelper)

克隆此依赖项参数对象,并替换了一个服务。

public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
member this.With : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (sqlGenerationHelper As ISqlGenerationHelper) As HistoryRepositoryDependencies

参数

sqlGenerationHelper
ISqlGenerationHelper

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于