tags:

views:

142

answers:

2

Hi All

Can anybody tell me how to map enum in nhibernate using vb.net.When i search the google i found all samples in c# but i want vb.net(i am new to vb.net)

Thanks

A: 

Are you using Fluent NHibernate? If not, the XML mappings are identical.

Jamie Ide
A: 

Just create a property node in your xml mapping file which which has the same name as the Property itself. NHibernate will pick up the type (in that case the enum) automatically using reflection.

<property name="YourEnumPropertyName" />
Michal