語言

Database.CreateIfNotExists 方法

定義

在資料庫伺服器上建立一個新的資料庫,以符合底層上下文中定義的模型,但前提是伺服器上尚未存在同名資料庫。

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

傳回

如果資料庫不存在且是被建立的,這點是真的;否則就是錯誤的。

適用於