共用方式為


QueryContextDependencies.With 方法

定義

多載

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

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

With(IDiagnosticsLogger<DbLoggerCategory.Query>)

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

With(IConcurrencyDetector)

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

With(ICurrentDbContext)

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

With(IConcurrencyDetector)

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

With(ICurrentDbContext)

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

With(IExecutionStrategyFactory)

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

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs

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

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>)

來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs

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

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)

來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs

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

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)

來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs

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

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)

來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs

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

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)

來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs

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

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)

來源:
QueryContextDependencies.cs
來源:
QueryContextDependencies.cs

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

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

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

傳回

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

適用於