Udostępnij za pośrednictwem


RelationalModelValidatorDependencies.With Metoda

Definicja

Przeciążenia

With(IRelationalTypeMapper)
Przestarzałe.

Klonuje ten obiekt parametru zależności z jedną usługą zastąpioną.

With(IRelationalTypeMappingSource)

Klonuje ten obiekt parametru zależności z jedną usługą zastąpioną.

With(IRelationalTypeMapper)

Przestroga

Use IRelationalTypeMappingSource.

Klonuje ten obiekt parametru zależności z jedną usługą zastąpioną.

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

Parametry

typeMapper
IRelationalTypeMapper

Zastąpienie bieżącej zależności tego typu.

Zwraca

Nowy obiekt parametru z daną usługą został zastąpiony.

Atrybuty

Dotyczy

With(IRelationalTypeMappingSource)

Klonuje ten obiekt parametru zależności z jedną usługą zastąpioną.

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

Parametry

typeMappingSource
IRelationalTypeMappingSource

Zastąpienie bieżącej zależności tego typu.

Zwraca

Nowy obiekt parametru z daną usługą został zastąpiony.

Dotyczy