Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data Object quetion..

 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is probably (again) somthing that is really easy, but I haven't been allowed to really code anything for about 2+ years, so I'm a little rusty here.. :roll:

I am creating a standalone desktop application that uses Micro$oft Hackcess, (whoops!) Access for the database portion of the backend. I have (possibly over-)normalized the tables down to a primary General Information Table and 5 child tables, each with the potential to have multiple entires in each of the children that will be keyed to the initial record in the GITable mentioned above.

The database portion I can make work natively, but my question is about how to create the data object/class so that it will contain all of the result set from all of the tables when I'm not sure exactly how many entries are in all of the child tables that go with the entry from the GITable?

Any / all help is GREATLY appreciated...
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to look at Value Object pattern, I guess.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic