PDA

View Full Version : Activate NHibernate integration


sir-archimedes
04-02-2006, 02:30 PM
Hello,

I would like to use the NHibernate integration for a new ASP.NET 2.0 project. But I can't figure out how to enable it. I've seen that the specific projects are in the folder sandbox but I cannot compile them (with VS 2005).

So how can I use the NHibernate integration? Is there already a turorial or a sample project available to look how the integration works?

Thanks for your help!

Best regards,
Dominik

Dimon
04-02-2006, 05:00 PM
Hi! It is possible. I did it yesterday witn VS 2005 and I can confirm that all works fine.

See my instrunction below:

1) Open SpringAir2 soluition using VS 2005 (ASP.NET 2 version)
2) Add Existing projects : Spring.Data, Spring.Orm.NHibernate, Spring.Orm.NHibernate.Tests (these projects are availabe from sandbox directory) you will see project migration migration wizard. Do migration, all projects will be migrated without any problems)
3) Try to Compile
4) You will get few errors and warnings
5) Fix errors (These ones are easy, one of them is at XML comments and rest of them are with assembly overwiting)
6) Compile again and all project will be completed well (make sure that all referrences link to their .NET 2.0 versions)
7) Run Spring.Orm.NHibernate.Tests to see how it works.

Maybe I missed something, but basically I did something as writen above.

Let me know if you will have some problem again