Just go for conventions! No need for mappings, except for any particular cases.
RP On Wednesday, April 20, 2016 at 3:35:12 AM UTC+1, Surya Pratap wrote: > > If you can follow a few conventions, try search mapping by code > > > http://notherdev.blogspot.in/2012/02/nhibernates-mapping-by-code-summary.html > this is a good resource for the same > > there is also support for attribute based mapping > https://github.com/nhibernate/NHibernate.Mapping.Attributes > > On 4/20/2016 5:57 AM, dale wrote: > > Hello, I'm very new to Nhibernate. Like in java is there a way where we > can map fields to class properties from entity class it self and not > through xml file. > Appreciate your help. > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nhusers+u...@googlegroups.com <javascript:>. > To post to this group, send email to nhu...@googlegroups.com <javascript:> > . > Visit this group at https://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+unsubscr...@googlegroups.com. To post to this group, send email to nhusers@googlegroups.com. Visit this group at https://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.