語言

DefaultDbModelStore.FileIsValid(Type, String) 方法

定義

驗證模型儲存的有效性。 預設實作會驗證 .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 檔案失效。

適用於