ModelValidatorDependencies.With 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
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
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。