When implemented by a class, generates the SQL string to create the mapping element in the database.

Namespace:  NHibernate.Mapping
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function SqlCreateString ( _
	dialect As Dialect, _
	p As IMapping, _
	defaultSchema As String _
) As String
C#
string SqlCreateString(
	Dialect dialect,
	IMapping p,
	string defaultSchema
)
Visual C++
String^ SqlCreateString(
	Dialect^ dialect, 
	IMapping^ p, 
	String^ defaultSchema
)
JavaScript
function sqlCreateString(dialect, p, defaultSchema);

Parameters

dialect
Type: NHibernate.Dialect..::.Dialect
The Dialect to use for SQL rules.
p
Type: NHibernate.Engine..::.IMapping
defaultSchema
Type: System..::.String

Return Value

A string that contains the SQL to create an object.

See Also