redGreen
redGreen

Reputation:

Enum and Nhibernate

Is it possble to use an Enum with Nhibernate? If so How?

Upvotes: 3

Views: 388

Answers (1)

cgreeno
cgreeno

Reputation: 32381

Yes you can.

In your XML mapping file

<property type="Namespace.EnumClass, Namespace" 
                            name="EnumValue" column="columnName"></property>

Example 1

Example 2

Upvotes: 3

Related Questions