Database.CreateIfNotExists 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在資料庫伺服器上針對支援內容中所定義的模型建立新的資料庫,但前提是伺服器上尚未有同名的資料庫存在。
public bool CreateIfNotExists();
member this.CreateIfNotExists : unit -> bool
Public Function CreateIfNotExists () As Boolean
傳回
如果資料庫尚未存在但是已建立則為 true,否則為 false。