Share via


ProviderConventionSetBuilderDependencies.With Method

Definition

Overloads

With(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Model>)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IDbSetFinder)

Clones this dependency parameter object with one service replaced.

With(IModelValidator)

Clones this dependency parameter object with one service replaced.

With(IDbSetFinder)

Clones this dependency parameter object with one service replaced.

With(IConstructorBindingFactory)

Clones this dependency parameter object with one service replaced.

With(IMemberClassifier)

Clones this dependency parameter object with one service replaced.

With(IParameterBindingFactories)

Clones this dependency parameter object with one service replaced.

With(ITypeMappingSource)

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> validationLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (validationLogger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation)) As ProviderConventionSetBuilderDependencies

Parameters

validationLogger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDiagnosticsLogger<DbLoggerCategory.Model>)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Model)) As ProviderConventionSetBuilderDependencies

Parameters

logger
IDiagnosticsLogger<DbLoggerCategory.Model>

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.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (currentContext As ICurrentDbContext) As ProviderConventionSetBuilderDependencies

Parameters

currentContext
ICurrentDbContext

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDbSetFinder)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IDbSetFinder setFinder);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IDbSetFinder -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (setFinder As IDbSetFinder) As ProviderConventionSetBuilderDependencies

Parameters

setFinder
IDbSetFinder

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IModelValidator)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator validator);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (validator As IModelValidator) As ProviderConventionSetBuilderDependencies

Parameters

validator
IModelValidator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDbSetFinder)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Internal.IDbSetFinder setFinder);
member this.With : Microsoft.EntityFrameworkCore.Internal.IDbSetFinder -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (setFinder As IDbSetFinder) As ProviderConventionSetBuilderDependencies

Parameters

setFinder
Microsoft.EntityFrameworkCore.Internal.IDbSetFinder

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IConstructorBindingFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.IConstructorBindingFactory constructorBindingFactory);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IConstructorBindingFactory -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (constructorBindingFactory As IConstructorBindingFactory) As ProviderConventionSetBuilderDependencies

Parameters

constructorBindingFactory
IConstructorBindingFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMemberClassifier)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier memberClassifier);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier memberClassifier);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
member this.With : Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (memberClassifier As IMemberClassifier) As ProviderConventionSetBuilderDependencies

Parameters

memberClassifier
Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Attributes

Applies to

With(IParameterBindingFactories)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.IParameterBindingFactories parameterBindingFactories);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IParameterBindingFactories -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (parameterBindingFactories As IParameterBindingFactories) As ProviderConventionSetBuilderDependencies

Parameters

parameterBindingFactories
IParameterBindingFactories

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ITypeMappingSource)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Storage.ITypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.ITypeMappingSource -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (typeMappingSource As ITypeMappingSource) As ProviderConventionSetBuilderDependencies

Parameters

typeMappingSource
ITypeMappingSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to