Executes the Export of the Schema in the given connection
Namespace:
NHibernate.Tool.hbm2ddl
Assembly:
NHibernate (in NHibernate.dll)
Syntax
JavaScript |
---|
function execute(script, export, justDrop, format, connection, exportOutput); |
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.
- connection
- Type: System.Data..::.IDbConnection
The connection to use when executing the commands when export is trueTruetruetrue (True in Visual Basic).
Must be an opened connection. The method doesn't close the connection.
- exportOutput
- Type: System.IO..::.TextWriter
The writer used to output the generated schema
Remarks
See Also