Share via


ModelValidatorDependencies.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(IMemberClassifier)

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.Infrastructure.ModelValidatorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.Infrastructure.ModelValidatorDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation)) As ModelValidatorDependencies

Parameters

logger
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.Infrastructure.ModelValidatorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> modelLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> -> Microsoft.EntityFrameworkCore.Infrastructure.ModelValidatorDependencies
Public Function With (modelLogger As IDiagnosticsLogger(Of DbLoggerCategory.Model)) As ModelValidatorDependencies

Parameters

modelLogger
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(IMemberClassifier)

Clones this dependency parameter object with one service replaced.

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

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(ITypeMappingSource)

Clones this dependency parameter object with one service replaced.

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

Parameters

typeMappingSource
ITypeMappingSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to