Run the schema creation script

Namespace:  NHibernate.Tool.hbm2ddl
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Sub Create ( _
	script As Boolean, _
	export As Boolean _
)
C#
public void Create(
	bool script,
	bool export
)
Visual C++
public:
void Create(
	bool script, 
	bool export
)
JavaScript
function create(script, export);

Parameters

script
Type: System..::.Boolean
trueTruetruetrue (True in Visual Basic) if the ddl should be outputted in the Console.
export
Type: System..::.Boolean
trueTruetruetrue (True in Visual Basic) if the ddl should be executed against the Database.

Remarks

This is a convenience method that calls Execute(Boolean, Boolean, Boolean, Boolean) and sets the justDrop parameter to false and the format parameter to true.

See Also