Run the schema creation script

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

Syntax

C#
public void Create(
	bool script,
	bool export
)
Visual Basic
Public Sub Create ( _
	script As Boolean, _
	export As Boolean _
)
Visual C++
public:
void Create(
	bool script, 
	bool 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) and sets the justDrop parameter to false.

See Also