ObjectContext.CreateDatabase Method


Creates the database by using the current data source connection and the metadata in the StoreItemCollection.

 void CreateDatabase();
public void CreateDatabase ();
member this.CreateDatabase : unit -> unit
Public Sub CreateDatabase ()


Call CreateDatabaseScript to view the data definition language (DDL) script. Call CreateDatabase to execute the script.

Most of the work is delegated to the CreateDatabase method.

For more information, see Working with Data Definition Language.

Applies to

See also