-->
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: Can't find NHibernate.cfg assembly
PostPosted: Wed Jul 11, 2007 11:47 am 
Newbie

Joined: Wed Jul 11, 2007 11:23 am
Posts: 7
NHibernate version:1.2.0.GA

I am trying to do my first NHibernate project. Before I can create a Configuration object, I believe I need to Import NHibernate.cfg. However I cannot find that dll in the installation.

What am I doing wrong?

Thanks,
Wardell


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2007 3:04 pm 
Regular
Regular

Joined: Wed Apr 25, 2007 4:18 am
Posts: 51
Location: Belarus, Gomel
Hi wardellcastles!

There is no NHibernate.cfg assembly - there IS NHibernate.Cfg namespace - so you have to reference NHibernate.dll in your project, and make use of NHibernate.Cfg namespace members - in C# it would be
Code:
using NHibernate.Cfg;
...
Configuration config = new Configuration();

or just use full class name - like
Code:
NHibernate.Cfg.Configuration config = new NHibernate.Cfg.Configuration();

Sorry, don't know VB syntax...

_________________
WBR, Igor


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.