Executes the Export of the Schema.

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

Syntax

Visual Basic (Declaration)
Public Sub Execute ( _
	script As Boolean, _
	export As Boolean, _
	justDrop As Boolean, _
	format As Boolean _
)
C#
public void Execute(
	bool script,
	bool export,
	bool justDrop,
	bool format
)
Visual C++
public:
void Execute(
	bool script, 
	bool export, 
	bool justDrop, 
	bool format
)
JavaScript
function execute(script, export, justDrop, format);

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.
justDrop
Type: System..::.Boolean
trueTruetruetrue (True in Visual Basic) if only the ddl to drop the Database objects should be executed.
format
Type: System..::.Boolean
trueTruetruetrue (True in Visual Basic) if the ddl should be nicely formatted instead of one statement per line.

Remarks

This method allows for both the drop and create ddl script to be executed.

See Also