语言

IOperationReporter 接口

定义

报告设计时操作(如迁移和基架)发出的消息。

public interface IOperationReporter
type IOperationReporter = interface
Public Interface IOperationReporter

注解

服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..

有关详细信息和示例,请参阅 数据库提供程序和扩展的实现 。

方法

名称 说明
WriteError(String)

写入错误消息。

WriteInformation(String)

写入信息性消息。

WriteVerbose(String)

写入详细(调试)消息。

WriteWarning(String)

写入警告消息。

适用于