MigrationsSqlGeneratorDependencies.With 方法

定义

重载

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

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

With(IDiagnosticsLogger<DbLoggerCategory.Migrations>)

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

With(ILoggingOptions)

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

With(ICurrentDbContext)

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

With(IRelationalCommandBuilderFactory)

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

With(IRelationalTypeMapper)
已过时.

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

With(IRelationalTypeMappingSource)

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

With(ISqlGenerationHelper)

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

With(ISingletonUpdateSqlGenerator)

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

With(IUpdateSqlGenerator)

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

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs

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

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

参数

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

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

返回

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

适用于

With(IDiagnosticsLogger<DbLoggerCategory.Migrations>)

Source:
MigrationsSqlGeneratorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> migrationsLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (migrationsLogger As IDiagnosticsLogger(Of DbLoggerCategory.Migrations)) As MigrationsSqlGeneratorDependencies

参数

migrationsLogger
IDiagnosticsLogger<DbLoggerCategory.Migrations>

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

返回

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

适用于

With(ILoggingOptions)

Source:
MigrationsSqlGeneratorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (loggingOptions As ILoggingOptions) As MigrationsSqlGeneratorDependencies

参数

loggingOptions
ILoggingOptions

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

返回

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

适用于

With(ICurrentDbContext)

Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs

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

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

参数

currentContext
ICurrentDbContext

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

返回

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

适用于

With(IRelationalCommandBuilderFactory)

Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (commandBuilderFactory As IRelationalCommandBuilderFactory) As MigrationsSqlGeneratorDependencies

参数

commandBuilderFactory
IRelationalCommandBuilderFactory

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

返回

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

适用于

With(IRelationalTypeMapper)

Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs

注意

Use IRelationalTypeMappingSource.

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

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
[System.Obsolete("Use IRelationalTypeMappingSource.")]
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
[<System.Obsolete("Use IRelationalTypeMappingSource.")>]
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (typeMapper As IRelationalTypeMapper) As MigrationsSqlGeneratorDependencies

参数

typeMapper
IRelationalTypeMapper

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

返回

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

属性

适用于

With(IRelationalTypeMappingSource)

Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs

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

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

参数

typeMappingSource
IRelationalTypeMappingSource

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

返回

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

适用于

With(ISqlGenerationHelper)

Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs

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

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

参数

sqlGenerationHelper
ISqlGenerationHelper

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

返回

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

适用于

With(ISingletonUpdateSqlGenerator)

Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator updateSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (updateSqlGenerator As ISingletonUpdateSqlGenerator) As MigrationsSqlGeneratorDependencies

参数

updateSqlGenerator
Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator

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

返回

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

适用于

With(IUpdateSqlGenerator)

Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs
Source:
MigrationsSqlGeneratorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator updateSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (updateSqlGenerator As IUpdateSqlGenerator) As MigrationsSqlGeneratorDependencies

参数

updateSqlGenerator
IUpdateSqlGenerator

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

返回

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

适用于