-->
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: Tutorial Help
PostPosted: Thu Mar 20, 2008 4:04 pm 
Newbie

Joined: Thu Mar 20, 2008 3:28 pm
Posts: 1
Hi all,

I'm having a bit of difficulty getting started with NHibernate. I've tried to follow the Getting Started Guide, but I think its assuming more knowledge that I have with .net.

I'm trying to replace the information in the guide/tutorial with information to connect to a FirebirdSQL database, but I'm confused as to the configuration files that need to be present.

First, the Getting started guide references using the app config file to store information, but the section indicating FirebirdSQL connection references a hibernate.cfg.xml file.

Is there perhaps a different tutorial that I can look at that leads me through a bit easier?

I've used .net/VS2005 a bit here and there over the last year or so, but my main experience is with Delphi/Freepascal and a OPF for those platforms.

Thanks,

Lee


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 21, 2008 4:50 pm 
Regular
Regular

Joined: Wed Aug 15, 2007 7:37 am
Posts: 73
The Getting Started guide refers to web.config (for ASP projects). hibernate.cfg.xml is correct for WinForms apps.

See http://www.hibernate.org/hib_docs/nhibe ... -xmlconfig

Also make sure you change the Build Action of the mapping files (.hbm.xml) to 'Embedded resource' so that they get included in your assembly.

Steve


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.