Enum and Nhibernate

Is it possible to use Enum with Nhibernate? If so, how?

+3
source share
1 answer

Yes, you can.

In your XML mapping file

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

Example 1

Example 2

+3
source

Source: https://habr.com/ru/post/1704545/


All Articles