共用方式為


EntityFrameworkCoreHealthChecksBuilderExtensions 類別

定義

IHealthChecksBuilder Entity Framework Core 的擴充方法。

public ref class EntityFrameworkCoreHealthChecksBuilderExtensions abstract sealed
public static class EntityFrameworkCoreHealthChecksBuilderExtensions
type EntityFrameworkCoreHealthChecksBuilderExtensions = class
Public Module EntityFrameworkCoreHealthChecksBuilderExtensions
繼承
EntityFrameworkCoreHealthChecksBuilderExtensions

方法

AddDbContextCheck<TContext>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>, Func<TContext,CancellationToken,Task<Boolean>>)

加入指定型別 DbContext 的健康情況檢查。

適用於