DefaultDbModelStore.FileIsValid(Type, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
驗證模型儲存的有效性。 預設實作會驗證 .edmx 檔案最後一次寫入是在上下文組合最後一次寫入之後。
protected virtual bool FileIsValid(Type contextType, string filePath);
abstract member FileIsValid : Type * string -> bool
override this.FileIsValid : Type * string -> bool
Protected Overridable Function FileIsValid (contextType As Type, filePath As String) As Boolean
參數
- contextType
- Type
代表模型的情境類型。
- filePath
- String
儲存模型的路徑。
傳回
是否應該讓 edmx 檔案失效。