IOperationReporter 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
報告由設計時作業(如遷移與鷹架)所發出的訊息。
public interface IOperationReporter
type IOperationReporter = interface
Public Interface IOperationReporter
備註
服役期間為 Singleton。 這表示單一實例會被多個 DbContext 實例使用。 實作必須是執行緒安全的。 此服務無法依賴於註冊為 Scoped的服務。
更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。
方法
| 名稱 | Description |
|---|---|
| WriteError(String) |
會寫出錯誤訊息。 |
| WriteInformation(String) |
寫一則資訊訊息。 |
| WriteVerbose(String) |
寫出冗長的(除錯)訊息。 |
| WriteWarning(String) |
寫下警告訊息。 |