共用方式為


Database.CreateIfNotExists 方法

定義

在資料庫伺服器上針對支援內容中所定義的模型建立新的資料庫,但前提是伺服器上尚未有同名的資料庫存在。

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

傳回

如果資料庫尚未存在但是已建立則為 true,否則為 false。

適用於