Gets the name of the data type for the column.

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

Syntax

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

Parameters

dialect
Type: NHibernate.Dialect..::.Dialect
The Dialect to use to get the valid data types.
mapping
Type: 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