This class maps a DbType to names.
            
Namespace: NHibernate.DialectAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
 Syntax
Syntax
| C# | 
|---|
| public class TypeNames | 
| Visual Basic | 
|---|
| Public Class TypeNames | 
| Visual C++ | 
|---|
| public ref class TypeNames | 
 Remarks
Remarks
            Associations may be marked with a capacity. Calling the Get()
            method with a type and actual size n will return the associated
            name with smallest capacity >= n, if available and an unmarked
            default type otherwise.
            Eg, setting
             CopyC#
            will give you back the following:
CopyC#
            will give you back the following:
             CopyC#
            On the other hand, simply putting
CopyC#
            On the other hand, simply putting
             CopyC#
            would result in
CopyC#
            would result in
             CopyC#
CopyC#
 CopyC#
CopyC#Names.Put(DbType, "TEXT" ); Names.Put(DbType, 255, "VARCHAR($l)" ); Names.Put(DbType, 65534, "LONGVARCHAR($l)" );
 CopyC#
CopyC#Names.Get(DbType) // --> "TEXT" (default) Names.Get(DbType,100) // --> "VARCHAR(100)" (100 is in [0:255]) Names.Get(DbType,1000) // --> "LONGVARCHAR(1000)" (100 is in [256:65534]) Names.Get(DbType,100000) // --> "TEXT" (default)
 CopyC#
CopyC#Names.Put(DbType, "VARCHAR($l)" ); CopyC#
CopyC#Names.Get(DbType) // --> "VARCHAR($l)" (will cause trouble) Names.Get(DbType,100) // --> "VARCHAR(100)" Names.Get(DbType,1000) // --> "VARCHAR(1000)" Names.Get(DbType,10000) // --> "VARCHAR(10000)"





