IOperationReporter 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
报告设计时操作(如迁移和基架)发出的消息。
public interface IOperationReporter
type IOperationReporter = interface
Public Interface IOperationReporter
注解
服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..
有关详细信息和示例,请参阅 数据库提供程序和扩展的实现 。
方法
| 名称 | 说明 |
|---|---|
| WriteError(String) |
写入错误消息。 |
| WriteInformation(String) |
写入信息性消息。 |
| WriteVerbose(String) |
写入详细(调试)消息。 |
| WriteWarning(String) |
写入警告消息。 |