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.  [ 3 posts ] 
Author Message
 Post subject: VS 2008 VB.Net, a web site, cant get embedded resources
PostPosted: Fri Dec 11, 2009 12:57 pm 
Beginner
Beginner

Joined: Thu Oct 08, 2009 11:44 am
Posts: 21
Location: Chicago
I have a legacy VB web site that I want to integrate NHibernate with. I have NHibernate working for a console application but when it is a Web Site you can't set the .hbm.xml files as embedded resources.

Is it possible to use NHibernate with an ASP.Net web site? If so what am I missing?


Thanks,

---John Putnam


Top
 Profile  
 
 Post subject: Re: VS 2008 VB.Net, a web site, cant get embedded resources
PostPosted: Fri Dec 11, 2009 7:10 pm 
Beginner
Beginner

Joined: Thu Oct 08, 2009 11:44 am
Posts: 21
Location: Chicago
I was able to put all the .vb table wrapper classes and .hbm.xml's in a class library and create a .dll and add that to the web project and have that work. I don't like that solution because I can not change the database classes easily to say add new named queries, etc. Does anyone know a work around to getting a .hbm.xml file attached to a VB web site (embedded resource problem)?

Thanks,

---John Putnam


Top
 Profile  
 
 Post subject: Re: VS 2008 VB.Net, a web site, cant get embedded resources
PostPosted: Wed Dec 16, 2009 3:02 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
You can read the hbm files from a file/directory during startup. Have a look ato configuration.LoadFile(...)

_________________
--Wolfgang


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.