NHibernate Forge
The official new home for the NHibernate for .NET community

Comments: Your first NHibernate based application

Wiki Page Hierarchy

Pages

Page Details

First published by:
Fabio Maulo
on 09-16-2008
Last revision by:
mStyle
on 04-16-2011
111 people found this article useful.
Comments (119)
History (17)

Your first NHibernate based application

Sort by: Published Date | Most Recent | Most Useful
1 2 3 4 5 Next > ... Last »
By: benek Posted on 10-03-2008 19:24

<p>Could you provide a zip file with whole VS solution for a download ?</p>

<p>Thanks</p>

By: Fabio Maulo Posted on 10-04-2008 9:18

<p>We would prefer that you spent your time to write "Your first NHibernate based application"...</p>

<p>Believe me that is the best way to learn.</p>

By: Eric.Yu Posted on 10-08-2008 0:03

<p>With Nhibernate,we can map a domain object to a relational dababase table easily. but how can we implement a Query with multiple tables joined? Will you please give an example? Thanks.</p>

By: Telefisch Posted on 11-18-2008 10:38

I think this example is buggy...

My first Problem was, I added hibernate.cfg.xml to FirstSolution. It had to be added to FirstSolution.Tests!

Then I've found no comment about the Schema for this File.

Now I get the fault "Could not dreate the driver from NHibernate.Driver.SqlServerCeDriver." .

I have no Idea, how to fix it.

It seems to come from one of the XML-Files but they both have been added with copy & paste.

Ah ja, there was also a problem with the copy-command for the postbuild. the two phrases had to be in ", in my VS.

By: mikerennick Posted on 12-09-2008 14:57

This is the most useful article I have read about implementing NHibernate in a layer approach.  I have a couple of questions:

Where does the helper class (NHibernateHelper) get located -- which project which folder?

In a web application, I assume that the NHibernateHelper class, as you have created it, will scale appropriately?  If this is not so, what modifications need to be made to the NHibernateHelper class to achieve a robust web application?

Thanks for this,

Mike

Powered by Community Server (Commercial Edition), by Telligent Systems