ObjectContext.CreateDatabaseScript Method ()

 

Generates a data definition language (DDL) script that creates schema objects (tables, primary keys, foreign keys) for the metadata in the StoreItemCollection . The StoreItemCollection loads metadata from store schema definition language (SSDL) files.

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

public virtual string CreateDatabaseScript()

Return Value

Type: System.String

A DDL script that creates schema objects for the metadata in the StoreItemCollection .