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
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。