Where can i find a Fluent NHibernate Tutorial? - fluent-nhibernate

I have googled and looked around does anyone know of any hidden gems out there that is not in first couple pages of a google search....

The wiki is your best bet. I've had a few Fluent NHibernate posts on my blog, but most of that content is mirrored on the wiki anyway.

I appreciate this tutorial, perhaps can help you:
http://nhforge.org/blogs/nhibernate/archive/2008/09/17/value-objects.aspx
The author explain the concept of value object, using them like components.

That helped me a lot maybe you should try.

Here is a 4-part blog posting about FluentNHibernate. Not sure exactly what you're looking for, but then you didn't say either. ;)

http://www.dreamincode.net/forums/topic/161638-fluent-nhibernate-tutorial/

Fluent Nhibernate has a wiki, have you checked it out?.

This video tutorial added to youtube.com on 10/5/2011 got me up in running in about 30 minutes.
Fluent NHibernate Tutorial
Update: It's been a few months, but if you need advanced mapping and don't mind 3rd party tools, use DevArt's Entity Developer tool which creates all of your entities and mappings for up to 10 tables/entities for free. The source code for the entity mappings is readily available for you to learn from. If you look at it you can learn a lot. http://www.devart.com/entitydeveloper/

I like NHibernate 3.0 tutorial with Fluent Nhibernate and LINQ 2 NHibernate

The GitHub project page has got all the basic examples you need: https://github.com/jagregory/fluent-nhibernate/wiki/Getting-started

Related

Nhibernate 3.2 start to finish walk-through that uses built in conForm

I'm looking for a tutorial on Nhibernate 3.2 that uses the built-in code configuration that NHibernate provides. I'm not interested in using Fluent NHibernate, nor the old-style XML mappings.
http://fabiomaulo.blogspot.com/2011/04/nhibernate-32-mapping-by-code.html and related articles from the same blog are the closest thing you'll find.
Fabio is the NHibernate lead and original author of the NH mapping-by-code.
The best example I've seen of the 3.2 loquacious mappings was in this post.
http://www.primordialcode.com/blog/post/nhibernate-envers-quick-introduction
It has a sample project which clearly shows most of the 3.2's mapping features.
I tried following Fabio's series of posts and found them a little confusing. I suspect since he wrote the 3.2 mappings he's got intimate knowledge that he isn't conveying.

Component Inheritance

Can anyone give/point me to 'official references' about component inheritance support in Nhibernate 3.10 ?
Already google it, but never find any reference about that.
Thanks
NHibernate (and Hibernate for that matter) does not support component inheritance out of the box. You have two relatively unpleasant options:
Map hierarchy as entities.
Write custom hydration/dehydration code using IUserType. This workaround is described in this article
(java, but should work for C#).
In the mean time you can vote for this feature to be implemented in Hibernate and maybe some day ported to NHibernate. NHibernate version of this feature request.
Here there's some doc but I'm not sure if this can help you:
https://ayende.com/blog/3941/nhibernate-mapping-inheritance
Updated
I think it's not possible! look here:
https://stackoverflow.com/q/3739806/735864

If I get a book on Hibernate will that be useful for nHIbernate?

Aside from the language used (Java, C#, etc.), are articles and books for Hibernate equally good for nHibernate? Now that I am learning I want to research but I don't want to waste time on the wrong information.
Thank you.
I have a very basic CRUD database project for learning if anyone has any all in one article.
EDIT: I bought the book nHibernate in Action, but I also found this website with helpful nHibernate videos: http://www.summerofnhibernate.com/
It would indeed, that said a friend of mine has just finished writing NHibernate in Action and I HIGHLY recommend it. As for web references I suggest the best practices article by Billy MCatherty, and of course the NHibernate documentation.
Absolutely. I would recommend you Hibernate in Action.

How to map the NHibernate Data Model to the Domain Model?

I started creating a domain model and now I asking myself, how can I map this domain model to a NHibernate Data Model ((using Fluent NHibernate)? Is there anywhere a good and simple example of how to do that?
With Data Model I didn't think about the physical/relational Database Model(!) What I meant was the Data Model in the Data Access Layer. So maybe I should change the term into Data Access Layer Data Model?! I hope some of you can follow me^^
I'd start reading the NHibernate manual, it's not very long and in chapter 5 covers many details about the different options that exist in the mappings. I find also important chapter 6 about collection mapping an 8 about inheritance.
Maybe you can start with the getting started page from fluent nhibernate, but to understand all the options you will have to lookup their meaning in the NH manual as Fluent NHibernate assumes that you are already familiar with the XML.
I don't have enough information about NHibernate in Action but the good old Hibernate in Action was also useful because the mapping examples for the Java version are in most cases valid on .NET and provides examples and detailed information on each parameter.
This is the easiest one for getting started in a step-by-step manner that I have come across
Your very first NHibernate application – Part 1
However, I would recommend that you simply download the latest binaries from the Fluent NHibernate download area rather than getting the source from Subversion, installing Ruby and building it locally on your machine but that's up to you.
Well, have you tried www.nhforge.org and http://fluentnhibernate.org/ ? Both have excellent introductory guides.
Take a look at the Getting started page on the Fluent NHibernate site. And definitely take a look at the Auto Mappings capabilities. I was up and running in a couple of hours. Good luck!

studying nhibernate critieria queries

Is there any other site for studying critieria queries like http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/querycriteria.html
Knol by Fabio Maulo
Some blog posts by Ayende
Operator Overloading
Multi Queries
One of the most helpful resources for me to learn more about NHibernate's Criteria API was definitely the 'Summer of NHibernate' screencast series (see here). Session 2 will show you how powerful it is.
The guy that created those series seriously rocks.
The nhibernate.info website has lot of docs.