Share via


RelationalModelValidatorDependencies.With Method

Definition

Overloads

With(IRelationalTypeMapper)
Obsolete.

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMapper)

Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs

Caution

Use IRelationalTypeMappingSource.

Clones this dependency parameter object with one service replaced.

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

Parameters

typeMapper
IRelationalTypeMapper

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Attributes

Applies to

With(IRelationalTypeMappingSource)

Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs

Clones this dependency parameter object with one service replaced.

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

Parameters

typeMappingSource
IRelationalTypeMappingSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to