Export (0) Print
Expand All

Database.CreateIfNotExists Method

Entity Framework 5.0

Creates a new database on the database server for the model defined in the backing context, but only if a database with the same name does not already exist on the server.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

Public Function CreateIfNotExists As Boolean
Dim instance As Database 
Dim returnValue As Boolean 

returnValue = instance.CreateIfNotExists()

Return Value

Type: System.Boolean
True if the database did not exist and was created; false otherwise.
© 2014 Microsoft