These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Installation easy step
PostPosted: Sat Jul 01, 2006 3:56 pm 
Newbie

Joined: Sat Jul 01, 2006 3:37 pm
Posts: 7
Hi all,
I'm trying to create a new WinForm application with .net 2.0 and I realy need some easy step to intall NHibernate.
(
NHibernate 1.0.2
http://sourceforge.net/project/showfile ... p_id=73818
with MySQL 5
)


I tried but I still have a lot of unanswered question like :

How do I config NHibernate since there is any Web.Config in winform ?
Do I have to reference only NHibernate.dll ?
Documentation suggest to use the MySql connector with NHibernate, how do I do that ?
etc.

Thanks for your help


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 04, 2006 6:41 pm 
Regular
Regular

Joined: Wed Jun 21, 2006 3:13 pm
Posts: 110
Which version of NHibernate are you using? 1.0.2? (The current official one)

You might want to consider going to 1.2 Alpha1 as the speed improvements and .Net 2.0 built in support are definately worth it (and I haven't hit any edge cases that have made me worry about going to prod with it... your results may vary).

But, to your questions...

First, if you're using Visual Studio, then all of your configuration should go in a file in the project called app.config. If you're not using visual studio, then the configuration information should go in the same directory as your WinForm .exe with the name <myApp>.exe.config. So, if your app is called superCool.exe then all of the config settings should go in superCool.exe.config in the same directory as superCool.exe. This is a native feature of the .Net framework, not something special to nhibernate.

Second, you technically only need to reference nhibernate.dll. Plan on the following being packaged with your application, though:
Code:
Castle.DynamicProxy.dll
Iesi.Collections.dll
log4net.dll
NHibernate.dll


Also, if you are using NHibernate 1.0.2 and want to use the native nullables (declaring things as int? to denote nullable fields), then plan on referencing Nullables2 (http://dotavery.com/blog/archive/2005/09/30/5202.aspx) as well.

Lastly, the connector they're probably referring to is on the MySql download section. You can find it here: http://dev.mysql.com/downloads/connector/net/1.0.html

Hopefully that's enough to get you started.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.