-->
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.  [ 1 post ] 
Author Message
 Post subject: User defined properties in PostgreSQL database
PostPosted: Mon Jun 25, 2007 4:16 pm 
Newbie

Joined: Mon Jun 25, 2007 3:59 pm
Posts: 15
I have about 20 PostgreSQL 8.1 and 8.2 databases in customer sites.
Every database contains about 150 tables.
Some tables contain user-defined fields which are different in different sites.
Base fields and table names are always the same. Some tables contain additional fields for custom business logic.

I'm creating NHIBERNATE .NET/MONO Winforms C# application using Visual C# 2005 Express.

Currently I'm using DataRow object and SELECT * FROM mytable to store and retrieve those variable columns.

It seems that user-defined columns are and DataRow based properties are not supported by nhibernate.

To fix this I think that application should create hbm files and entity assemblies (c# entity classes) dynamically from database structure to support user-added fields.
After database sturcture is changed, application can dedect this and generate new mapping file and entity class from database.

Any idea or sample how to implement this ?

Where to find framework or sample application which uses WinForms with NHibernate ?

Andrus.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.