Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate access="field.camelcase-underscore" with Nhibernate's mapping by code?

Tags:

c#

nhibernate

I can't seem to find a way to set the naming strategy.

like image 666
Newbie Avatar asked Oct 19 '11 16:10

Newbie


1 Answers

mapper.Class<YourClass>(cm => cm.Property(x => x.YourProperty,
                                          pm => pm.Access(Accessor.Field)));
like image 115
Diego Mijelshon Avatar answered Oct 20 '22 16:10

Diego Mijelshon