Gets the name of the data type for the column.

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

Syntax

C#
public string GetSqlType(
	Dialect dialect,
	IMapping mapping
)
Visual Basic
Public Function GetSqlType ( _
	dialect As Dialect, _
	mapping As IMapping _
) As String
Visual C++
public:
String^ GetSqlType(
	Dialect^ dialect, 
	IMapping^ mapping
)

Parameters

dialect
Type: NHibernate.Dialect..::..Dialect
The Dialect to use to get the valid data types.
mapping
Type: NHibernate.Engine..::..IMapping

[Missing <param name="mapping"/> documentation for "M:NHibernate.Mapping.Column.GetSqlType(NHibernate.Dialect.Dialect,NHibernate.Engine.IMapping)"]

Return Value

The name of the data type for the column.

Remarks

If the mapping file contains a value of the attribute sql-type this will return the string contained in that attribute. Otherwise it will use the typename from the Dialect of the SqlType object.

See Also