Hardcoding of 255 for the maximum length of the Enum name that will be saved to the db.

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

Syntax

Visual Basic (Declaration)
Public Const MaxLengthForEnumString As Integer
C#
public const int MaxLengthForEnumString
Visual C++
public:
literal int MaxLengthForEnumString
JavaScript
NHibernate.Type.EnumStringType.maxLengthForEnumString

Field Value

255 because that matches the default length that hbm2ddl will use to create the column.

See Also