-->
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: Missing hbm.xml files in vc++ assembly
PostPosted: Thu Feb 15, 2007 2:24 pm 
Newbie

Joined: Wed Feb 14, 2007 5:43 am
Posts: 3
Hi @,

I use NHibernate with VC++ 2005 and it works so far.

I have only a problem if I put my database entities in a separate
assembly DLL together with the mapping files.

If I execute then

NHibernate::Cfg::Configuration^ cfg = gcnew NHibernate::Cfg::Configuration();
cfg->Configure("hibernate.cfg.xml");
cfg->AddAssembly("myassembly");

factory = cfg->BuildSessionFactory();
session = factory->OpenSession();

and

Anlage^ anlage = gcnew Anlage();
anlage->Name = "Anlage";
anlage->Path = fDialog->FileName;
session->Save( anlage );

I got a exception

Additional information: Unknown entity class: wsdb.Anlage

I found out, that my assembly doesn't include the hbm.xml files.
Does anyone know how to include them in my assembly-dll.
It is a assembly generated with VC++ 2005 and the hbm.xml files are part of this VC++Project.

And does anynone know a dotnet-tool to check the content of an assembly.

Thx in advance.

Regards Ray


Top
 Profile  
 
 Post subject: Re: Missing hbm.xml files in vc++ assembly
PostPosted: Fri Feb 16, 2007 4:05 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
rayburks wrote:
And does anynone know a dotnet-tool to check the content of an assembly.


Have You tried reflector from http://www.aisto.com/roeder/dotnet/?

Gert

_________________
If a reply helps You, rate it!


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.