Glad I could help.

You might also want to consider using Fluent NHibernate - it's been around 
longer, and is more mature and better documented.  Adam has some good 
comparisons in his blog posts.  I agree with some of his criticisms of FNH 
vs NH MbC, but not all of them.

In particular, I suggest looking at FNH Automapping 
(http://wiki.fluentnhibernate.org/Auto_mapping).  I've been using this on 
my project for almost 2 years now, and it mostly "just works".

NH has nothing equivalent yet, although I've seen some recent postings here 
indicating it's being worked on.

-Tom Bushell

On Tuesday, April 10, 2012 12:36:34 AM UTC-4, Marcelo Grossi wrote:
>
> Thank you very much Tom, 
>
> The link you sent was great! 
>
> Altough I still miss some 'official' documentation or perhaps a good 
> book on the inner workings of the ORM, I'm starting to get along with 
> NH instead of getting beat up by it day in and day out ;-) 
>
> Regards, 
>
> Marcelo Grossi 
>
> On Apr 9, 11:55 am, Tom Bushell <[email protected]> wrote: 
> > Check out Adam Bar's series on NH Mapping By Code, starting here: 
> > 
> > http://notherdev.blogspot.com/2012/02/nhibernates-mapping-by-code-sum... 
>
> > 
> > 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/-/0ZEnxGTl6N4J.
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.

Reply via email to