Namespaces

Types

Type SchemaExport

Namespace NHibernate.Tool.hbm2ddl

Methods

Public instance methods

void Create(bool script, bool export)

Run the schema creation script
This is a convenience method that calls Execute and sets the justDrop parameter to false and the format parameter to true.
Parameters
bool script ${WriteSummary(content)}
bool export ${WriteSummary(content)}

void Drop(bool script, bool export)

Run the drop schema script
This is a convenience method that calls Execute and sets the justDrop and format parameter to true.
Parameters
bool script ${WriteSummary(content)}
bool export ${WriteSummary(content)}

bool Equals(object obj)

Parameters
return bool
object obj

void Execute(bool script, bool export, bool justDrop, bool format)

Executes the Export of the Schema.
This method allows for both the drop and create ddl script to be executed.
Parameters
bool script ${WriteSummary(content)}
bool export ${WriteSummary(content)}
bool justDrop ${WriteSummary(content)}
bool format ${WriteSummary(content)}

void Execute(bool script, bool export, bool justDrop, bool format, IDbConnection connection, TextWriter exportOutput)

Executes the Export of the Schema in the given connection
This method allows for both the drop and create ddl script to be executed. This overload is provided mainly to enable use of in memory databases. It does NOT close the given connection!
Parameters
bool script ${WriteSummary(content)}
bool export ${WriteSummary(content)}
bool justDrop ${WriteSummary(content)}
bool format ${WriteSummary(content)}
IDbConnection connection ${WriteSummary(content)}
TextWriter exportOutput The writer used to output the generated schema

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

SchemaExport SetDelimiter(string delimiter)

Set the end of statement delimiter
Parameters
return SchemaExport The SchemaExport object.
string delimiter The end of statement delimiter.

SchemaExport SetOutputFile(string filename)

Set the output filename. The generated script will be written to this file
Parameters
return SchemaExport The SchemaExport object.
string filename The name of the file to output the ddl to.

string ToString()

Parameters
return string