RelationalDatabaseCreatorDependencies.With 方法

定义

重载

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

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

With(ICurrentDbContext)

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

With(IModel)

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

With(IMigrationCommandExecutor)

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

With(IMigrationsModelDiffer)

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

With(IMigrationsSqlGenerator)

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

With(IExecutionStrategyFactory)

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

With(IRelationalConnection)

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

With(ISqlGenerationHelper)

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

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies 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.Storage.RelationalDatabaseCreatorDependencies
Public Function With (commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As RelationalDatabaseCreatorDependencies

参数

commandLogger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

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

返回

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

适用于

With(ICurrentDbContext)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

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

参数

currentContext
ICurrentDbContext

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

返回

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

适用于

With(IModel)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Metadata.IModel model);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (model As IModel) As RelationalDatabaseCreatorDependencies

参数

model
IModel

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

返回

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

适用于

With(IMigrationCommandExecutor)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (migrationCommandExecutor As IMigrationCommandExecutor) As RelationalDatabaseCreatorDependencies

参数

migrationCommandExecutor
IMigrationCommandExecutor

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

返回

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

适用于

With(IMigrationsModelDiffer)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

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

参数

modelDiffer
IMigrationsModelDiffer

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

返回

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

适用于

With(IMigrationsSqlGenerator)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

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

参数

migrationsSqlGenerator
IMigrationsSqlGenerator

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

返回

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

适用于

With(IExecutionStrategyFactory)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (executionStrategyFactory As IExecutionStrategyFactory) As RelationalDatabaseCreatorDependencies

参数

executionStrategyFactory
IExecutionStrategyFactory

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

返回

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

适用于

With(IRelationalConnection)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

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

参数

connection
IRelationalConnection

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

返回

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

适用于

With(ISqlGenerationHelper)

Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs
Source:
RelationalDatabaseCreatorDependencies.cs

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

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

参数

sqlGenerationHelper
ISqlGenerationHelper

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

返回

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

适用于