ProviderConventionSetBuilderDependencies.With 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
With(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IDiagnosticsLogger<DbLoggerCategory.Model>) |
克隆此依赖项参数对象,替换了一个服务。 |
With(ICurrentDbContext) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IDbSetFinder) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IModelValidator) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IDbSetFinder) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IConstructorBindingFactory) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IMemberClassifier) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IParameterBindingFactories) |
克隆此依赖项参数对象,替换了一个服务。 |
With(ITypeMappingSource) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> validationLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (validationLogger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation)) As ProviderConventionSetBuilderDependencies
参数
- validationLogger
- IDiagnosticsLogger<DbLoggerCategory.Model.Validation>
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
With(IDiagnosticsLogger<DbLoggerCategory.Model>)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Model)) As ProviderConventionSetBuilderDependencies
参数
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
With(ICurrentDbContext)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (currentContext As ICurrentDbContext) As ProviderConventionSetBuilderDependencies
参数
- currentContext
- ICurrentDbContext
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
With(IDbSetFinder)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IDbSetFinder setFinder);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IDbSetFinder -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (setFinder As IDbSetFinder) As ProviderConventionSetBuilderDependencies
参数
- setFinder
- IDbSetFinder
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
With(IModelValidator)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator validator);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (validator As IModelValidator) As ProviderConventionSetBuilderDependencies
参数
- validator
- IModelValidator
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
With(IDbSetFinder)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Internal.IDbSetFinder setFinder);
member this.With : Microsoft.EntityFrameworkCore.Internal.IDbSetFinder -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (setFinder As IDbSetFinder) As ProviderConventionSetBuilderDependencies
参数
- setFinder
- Microsoft.EntityFrameworkCore.Internal.IDbSetFinder
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
With(IConstructorBindingFactory)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.IConstructorBindingFactory constructorBindingFactory);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IConstructorBindingFactory -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (constructorBindingFactory As IConstructorBindingFactory) As ProviderConventionSetBuilderDependencies
参数
- constructorBindingFactory
- IConstructorBindingFactory
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
With(IMemberClassifier)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier memberClassifier);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier memberClassifier);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
member this.With : Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (memberClassifier As IMemberClassifier) As ProviderConventionSetBuilderDependencies
参数
- memberClassifier
- Microsoft.EntityFrameworkCore.Metadata.Internal.IMemberClassifier
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
- 属性
适用于
With(IParameterBindingFactories)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.IParameterBindingFactories parameterBindingFactories);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IParameterBindingFactories -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (parameterBindingFactories As IParameterBindingFactories) As ProviderConventionSetBuilderDependencies
参数
- parameterBindingFactories
- IParameterBindingFactories
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
With(ITypeMappingSource)
克隆此依赖项参数对象,替换了一个服务。
public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Storage.ITypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.ITypeMappingSource -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies
Public Function With (typeMappingSource As ITypeMappingSource) As ProviderConventionSetBuilderDependencies
参数
- typeMappingSource
- ITypeMappingSource
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。