ObjectContext.DatabaseExists 方法

定義

檢查在目前資料來源連接中指定為資料庫的資料庫是否存在於資料來源上。

public:
 bool DatabaseExists();
public bool DatabaseExists ();
member this.DatabaseExists : unit -> bool
Public Function DatabaseExists () As Boolean

傳回

如果資料庫存在,則為 true

備註

大部分的工作都會委派給 DatabaseExists 方法。

如需詳細資訊,請參閱 使用數據定義語言

適用於

另請參閱