which template automatically generates .hbm.xml files

NHibernate Forum

which template automatically generates .hbm.xml files

Postby ygiberr on Wed Jun 22, 2005 11:00 am

hiya,
this is a quote from the nHibernate forum:
http://nhibernate.sourceforge.net/forum ... c.php?t=14
<quote>
What you can do is a toolbox that detect changes in the DB schema and call console generator of MyGeneration/CodeSmith using their template
<\\quote>

I have been looking for the template that does this on the myGeneration site..can anyone point me in the right direction?

many thanks,

yogi
ygiberr
Lurker
 
Posts: 2
Joined: Wed Jun 22, 2005 10:55 am

Postby mike.griffin on Wed Jun 22, 2005 1:35 pm

Have you seen these:

http://www.mygenerationsoftware.com/Tem ... 8509160f6b

or

http://www.mygenerationsoftware.com/Tem ... 4fd6e91f9e

The fist link is the better one, and remember if you can make them better feel free to post them, we need user contributions
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Postby ygiberr on Wed Jun 22, 2005 3:12 pm

cheers Mike,

I assume that I have to copy and paste the 2 sections from the link that you sent:
1) templateBody
2) dyamicInterface

I then go File --> new --> C# template

I tried to overwrite the \"template Code\" tab code with the \"templateBody\" code that I copied and pasted from the links you kindly sent.

I then ran it but am recieving NullreferenceException errors on the 1st line.

I've been checking the documentation, but can't see where I'm going wrong.

can anyone advise?

cheers,
yogi
ygiberr
Lurker
 
Posts: 2
Joined: Wed Jun 22, 2005 10:55 am

Postby mike.griffin on Wed Jun 22, 2005 3:27 pm

No, there is a download link on those screens, but you can also go to your MyGeneration.EXE and hit the globe icon, it will actually pull down any templates you desire incuding the nhibernate.
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN


Return to NHibernate

Who is online

Users browsing this forum: No registered users and 0 guests