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: nhibernate templates for Visual Studio 2008
PostPosted: Tue Apr 22, 2008 3:31 pm 
Regular
Regular

Joined: Tue Jun 26, 2007 11:50 am
Posts: 105
Hello,

Is there, somewhere on the web some nhibernate templates projects for Visual Studio 2008 ?

The template project could:
- add a reference to nhibernate.dll
- add an app.config file with a nhibernate section.
- add a maping file as embedded resource.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 22, 2008 3:38 pm 
Beginner
Beginner

Joined: Fri Jul 22, 2005 4:08 pm
Posts: 28
Related to this, has anyone discussed putting together a Guidance Automation Package to cover common NHibernate tasks, like adding a mapping document for a class? It would be great if a command to add the mapping document for a class presented a dialog with a list of properties already defined for that class so I could select which ones to map. I'm sure I'd have to go tweak the attributes by hand, but a simple IDE tool like that would save a lot of time.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 9:40 pm 
Regular
Regular

Joined: Tue Jun 26, 2007 11:50 am
Posts: 105
It is possible to generate a mapping file from a table of the database thanks to CodeSmith. I would be nice to have the possibility to do the same from the business layer as explained in this post : http://community.codesmithtools.com/forums/t/7453.aspx

I think it would be nice to have a Visual Studio plugin that allow to graphically bind the properties of a class to the fields of a table. Under that, a mapping file would be generated. That could save much time even if we have to do some modification in the xml after that... Let me know if such a tool exists. ;-)


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.