共用方式為


ModelValidatorDependencies.With 方法

定義

多載

With(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

複製此相依性參數物件,並取代一個服務。

With(IDiagnosticsLogger<DbLoggerCategory.Model>)

複製此相依性參數物件,並取代一個服務。

With(IMemberClassifier)

複製此相依性參數物件,並取代一個服務。

With(ITypeMappingSource)

複製此相依性參數物件,並取代一個服務。

With(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

複製此相依性參數物件,並取代一個服務。

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

參數

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

取代此類型的目前相依性。

傳回

取代指定服務的新參數物件。

適用於

With(IDiagnosticsLogger<DbLoggerCategory.Model>)

複製此相依性參數物件,並取代一個服務。

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

參數

modelLogger
IDiagnosticsLogger<DbLoggerCategory.Model>

取代此類型的目前相依性。

傳回

取代指定服務的新參數物件。

適用於

With(IMemberClassifier)

複製此相依性參數物件,並取代一個服務。

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

參數

memberClassifier
Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier

取代此類型的目前相依性。

傳回

取代指定服務的新參數物件。

屬性

適用於

With(ITypeMappingSource)

複製此相依性參數物件,並取代一個服務。

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

參數

typeMappingSource
ITypeMappingSource

取代此類型的目前相依性。

傳回

取代指定服務的新參數物件。

適用於