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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
string SqlCreateString(
	Dialect dialect,
	IMapping p,
	string defaultCatalog,
	string defaultSchema
)
Visual Basic
Function SqlCreateString ( _
	dialect As Dialect, _
	p As IMapping, _
	defaultCatalog As String, _
	defaultSchema As String _
) As String
Visual C++
String^ SqlCreateString(
	Dialect^ dialect, 
	IMapping^ p, 
	String^ defaultCatalog, 
	String^ defaultSchema
)

Parameters

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

[Missing <param name="p"/> documentation for "M:NHibernate.Mapping.IRelationalModel.SqlCreateString(NHibernate.Dialect.Dialect,NHibernate.Engine.IMapping,System.String,System.String)"]

defaultCatalog
Type: System..::..String

[Missing <param name="defaultCatalog"/> documentation for "M:NHibernate.Mapping.IRelationalModel.SqlCreateString(NHibernate.Dialect.Dialect,NHibernate.Engine.IMapping,System.String,System.String)"]

defaultSchema
Type: System..::..String

[Missing <param name="defaultSchema"/> documentation for "M:NHibernate.Mapping.IRelationalModel.SqlCreateString(NHibernate.Dialect.Dialect,NHibernate.Engine.IMapping,System.String,System.String)"]

Return Value

A string that contains the SQL to create an object.

See Also