Share via


HistoryRepositoryDependencies.With Method

Definition

Overloads

With(IRelationalDatabaseCreator)

Clones this dependency parameter object with one service replaced.

With(IRelationalConnection)

Clones this dependency parameter object with one service replaced.

With(IRawSqlCommandBuilder)

Clones this dependency parameter object with one service replaced.

With(IMigrationsSqlGenerator)

Clones this dependency parameter object with one service replaced.

With(IMigrationsModelDiffer)

Clones this dependency parameter object with one service replaced.

With(ICoreConventionSetBuilder)

Clones this dependency parameter object with one service replaced.

With(ModelDependencies)

Clones this dependency parameter object with one service replaced.

With(IConventionSetBuilder)

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

With(IDbContextOptions)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Model>)
Obsolete.

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Clones this dependency parameter object with one service replaced.

With(IConventionSetBuilder)

Clones this dependency parameter object with one service replaced.

With(ISqlGenerationHelper)

Clones this dependency parameter object with one service replaced.

With(IRelationalDatabaseCreator)

Clones this dependency parameter object with one service replaced.

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

Parameters

databaseCreator
IRelationalDatabaseCreator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IRelationalConnection)

Clones this dependency parameter object with one service replaced.

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

Parameters

connection
IRelationalConnection

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IRawSqlCommandBuilder)

Clones this dependency parameter object with one service replaced.

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

Parameters

rawSqlCommandBuilder
IRawSqlCommandBuilder

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMigrationsSqlGenerator)

Clones this dependency parameter object with one service replaced.

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

Parameters

migrationsSqlGenerator
IMigrationsSqlGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMigrationsModelDiffer)

Clones this dependency parameter object with one service replaced.

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

Parameters

modelDiffer
IMigrationsModelDiffer

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICoreConventionSetBuilder)

Clones this dependency parameter object with one service replaced.

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

Parameters

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

The core convention set to use when creating the model.

Returns

A new parameter object with the given service replaced.

Applies to

With(ModelDependencies)

Clones this dependency parameter object with one service replaced.

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

Parameters

modelDependencies
ModelDependencies

The core convention set to use when creating the model.

Returns

A new parameter object with the given service replaced.

Applies to

With(IConventionSetBuilder)

Clones this dependency parameter object with one service replaced.

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

Parameters

conventionSetBuilder
IConventionSetBuilder

The core convention set to use when creating the model.

Returns

A new parameter object with the given service replaced.

Applies to

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

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

Parameters

typeMappingSource
IRelationalTypeMappingSource

The type mapper.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDbContextOptions)

Clones this dependency parameter object with one service replaced.

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

Parameters

options
IDbContextOptions

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

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

Parameters

currentContext
ICurrentDbContext

The type mapper.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDiagnosticsLogger<DbLoggerCategory.Model>)

Caution

This API is now deprecated.

Clones this dependency parameter object with one service replaced.

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

Parameters

modelLogger
IDiagnosticsLogger<DbLoggerCategory.Model>

The type mapper.

Returns

A new parameter object with the given service replaced.

Attributes

Applies to

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Clones this dependency parameter object with one service replaced.

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

Parameters

commandLogger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

The command logger.

Returns

A new parameter object with the given service replaced.

Applies to

With(IConventionSetBuilder)

Clones this dependency parameter object with one service replaced.

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

Parameters

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

The convention set to use when creating the model.

Returns

A new parameter object with the given service replaced.

Applies to

With(ISqlGenerationHelper)

Clones this dependency parameter object with one service replaced.

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

Parameters

sqlGenerationHelper
ISqlGenerationHelper

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to