-->
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: Generation of POCO classes and their maping files in runtime
PostPosted: Fri Aug 22, 2008 6:04 pm 
Newbie

Joined: Fri Aug 22, 2008 5:57 pm
Posts: 3
Location: Russia, Moscow
I have a project and there are over 1000 database tables, which are described by metadata. It should be a simple ASP application, with standart UI to view/add/delete/update records in these tables. How I can generate POCO classes and their mapping files for NHibernate in runtime?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 4:38 pm 
Beginner
Beginner

Joined: Mon Feb 04, 2008 7:36 pm
Posts: 31
Look at codesmith for code generation.

If you are trying to generate classes and mapping attributes at runtime, you have a pretty big task ahead of you. Take a look at reflection.emit for generating code at runtime. This will be pretty slow at app startup though.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 24, 2008 4:51 am 
Newbie

Joined: Fri Aug 22, 2008 5:57 pm
Posts: 3
Location: Russia, Moscow
Thanks, I'll try.


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.