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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public const int MaxLengthForEnumString
Visual Basic
Public Const MaxLengthForEnumString As Integer
Visual C++
public:
literal int MaxLengthForEnumString

Field Value

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

See Also