NHibernate enum mapping

Go To StackoverFlow.com

0

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

2009-06-16 10:35
by user98454


0

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

2009-06-16 12:20
by Jamie Ide


0

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" />
2009-06-16 15:45
by Michal
Ads