PC Review


Reply
Thread Tools Rate Thread

complex relation and database programming

 
 
Oleg
Guest
Posts: n/a
 
      15th Jul 2003
I'm coding a little database application.
So I have several entities which are represented in DB with tables.
One entity – one table.
But the so called "main" entities can have any number of entity1 and
entity2. So I made up 2 tables which represent these relations:
Table1 columns:
1. id_main_entity
2. id_entity1
Table2 columns:
1. id_main_entity
2. id_entity2
I am in doubt. According to my OOP way of thinking I decide to make 3
classes
Class MainEntity
Class Entity1
Class Entity2
And try to encapsulate all the db functions in this classes. But it is
ineffective because I must show array of entities in list. So when I
create entity it loads information about itself. Every entity opens
new connection and sends separate command. Besides if user want to
edit one of the main entities
i must load a list of all entities1 entities2.
I think about dataset. I can fill it when program loading. But due to
relationships and information that must be presented in main window I
must load all database at starting time. Any advice? Please help?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
complex form programming request Zack Microsoft Excel Programming 1 10th Apr 2008 05:12 PM
Complex Variable Programming David A. Heiser Microsoft Excel Programming 1 10th May 2006 11:09 PM
programming complex query/report =?Utf-8?B?Q2FybCBQb3J0ZXI=?= Microsoft Access Queries 3 27th Feb 2006 05:32 PM
Complex programming task =?Utf-8?B?ZHZvbmo=?= Microsoft Excel Programming 2 13th Mar 2005 10:00 AM
Complex disk programming problems mikeybe Microsoft VB .NET 0 28th Oct 2004 09:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 PM.