Generates the SQL string to create the named Foreign Key Constraint in the database.

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

Syntax

C#
public override string SqlConstraintString(
	Dialect d,
	string constraintName,
	string defaultCatalog,
	string defaultSchema
)
Visual Basic
Public Overrides Function SqlConstraintString ( _
	d As Dialect, _
	constraintName As String, _
	defaultCatalog As String, _
	defaultSchema As String _
) As String
Visual C++
public:
virtual String^ SqlConstraintString(
	Dialect^ d, 
	String^ constraintName, 
	String^ defaultCatalog, 
	String^ defaultSchema
) override

Parameters

d
Type: NHibernate.Dialect..::..Dialect
The Dialect to use for SQL rules.
constraintName
Type: System..::..String
The name to use as the identifier of the constraint in the database.
defaultCatalog
Type: System..::..String

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

defaultSchema
Type: System..::..String

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

Return Value

A string that contains the SQL to create the named Foreign Key Constraint.

See Also