QueryContextDependencies.With 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>) |
複製此相依性參數物件,並取代一個服務。 |
With(IDiagnosticsLogger<DbLoggerCategory.Query>) |
複製此相依性參數物件,並取代一個服務。 |
With(IConcurrencyDetector) |
複製此相依性參數物件,並取代一個服務。 |
With(ICurrentDbContext) |
複製此相依性參數物件,並取代一個服務。 |
With(IConcurrencyDetector) |
複製此相依性參數物件,並取代一個服務。 |
With(ICurrentDbContext) |
複製此相依性參數物件,並取代一個服務。 |
With(IExecutionStrategyFactory) |
複製此相依性參數物件,並取代一個服務。 |
With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As QueryContextDependencies
參數
- commandLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Command>
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(IDiagnosticsLogger<DbLoggerCategory.Query>)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> queryLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (queryLogger As IDiagnosticsLogger(Of DbLoggerCategory.Query)) As QueryContextDependencies
參數
- queryLogger
- IDiagnosticsLogger<DbLoggerCategory.Query>
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(IConcurrencyDetector)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector concurrencyDetector);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (concurrencyDetector As IConcurrencyDetector) As QueryContextDependencies
參數
- concurrencyDetector
- IConcurrencyDetector
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(ICurrentDbContext)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (currentContext As ICurrentDbContext) As QueryContextDependencies
參數
- currentContext
- ICurrentDbContext
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(IConcurrencyDetector)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector concurrencyDetector);
member this.With : Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (concurrencyDetector As IConcurrencyDetector) As QueryContextDependencies
參數
- concurrencyDetector
- Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(ICurrentDbContext)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentDbContext);
member this.With : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (currentDbContext As ICurrentDbContext) As QueryContextDependencies
參數
- currentDbContext
- Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(IExecutionStrategyFactory)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactor);
member this.With : Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (executionStrategyFactor As IExecutionStrategyFactory) As QueryContextDependencies
參數
- executionStrategyFactor
- IExecutionStrategyFactory
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。