N
netX
I have the following scenario:
I have a books database that contains several tables, with the appropriate
relationships setted up. After I have the db schema, I designed the Book
component, that is constructed to hold information from each table, and also
the Publisher and Author components, that I thought that fits well for
one-to-many, and many-to-many respective.
Now, I'm retrieving and fill a DataSet with all the tables, mentaining the
constraints, and everything's just fine. My problem is that, now every Book
has a collection of Author(s), and when I choose to modify, say ... a
specific author's web address, I wanted that this change to reflect on every
author in every collection of every book that is written by this author.
But, I am constructing the Books when my app is loading, and therefore,
every book gets its own authors collection, so ... the question is ... am I
missing out a good design pattern, or ... do you know any other design
principle that would work on exactely what I expect?
I hope someone can help me to get this out.
Thanks in advance!
I have a books database that contains several tables, with the appropriate
relationships setted up. After I have the db schema, I designed the Book
component, that is constructed to hold information from each table, and also
the Publisher and Author components, that I thought that fits well for
one-to-many, and many-to-many respective.
Now, I'm retrieving and fill a DataSet with all the tables, mentaining the
constraints, and everything's just fine. My problem is that, now every Book
has a collection of Author(s), and when I choose to modify, say ... a
specific author's web address, I wanted that this change to reflect on every
author in every collection of every book that is written by this author.
But, I am constructing the Books when my app is loading, and therefore,
every book gets its own authors collection, so ... the question is ... am I
missing out a good design pattern, or ... do you know any other design
principle that would work on exactely what I expect?
I hope someone can help me to get this out.
Thanks in advance!