Check out Adam Bar's series on NH Mapping By Code, starting here: http://notherdev.blogspot.com/2012/02/nhibernates-mapping-by-code-summary.html
This is by far the best info currently available (AFAIK), and really should be included with the NH docs. -Tom Bushell On Sunday, April 8, 2012 8:35:21 AM UTC-4, Marcelo Grossi wrote: > > Hi, > > I'm trying to build a mapping for NHibernate 3.2.0 using the code > first approach and mapping all by code (I find it more elegant than a > bunch of XML files). I'm taking a beating from NH for a few days now > and decided to ask for you NH Gurus out there for help. > > I'm having trouble mapping a custom "Coordinate" value-type class that > holds latitude and longitude. I made an ICompositeUserType for it but > can't get it mapped for the love of me! The reason I want a type for > it is that I will reuse this in several other entity classes. > > My mappings are all in separate classes that derive from ClassMapping > (the entities at least). > > Is there any books or references I can start? I couldn't find a > definitive manual/help for NH 3.2 code first (ByCode). Any > suggestions? Something that will show me all the possible > configurations and thought process I should be picking up on..? > > Sorry for the long post, any help is much appreciated. > > Thank you -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/Mp8GiofS7dkJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
