G
Guest
I am looking at creating an oo application mapped to a sql server database.
One issue I have come up against is say I have a page which must display
information from four different database tables (which assume I have mapped
to four software objects). The simplest way to do this would be to create a
query across the four tables and have a single method returning all the
relevant data. However this would seem to break the spirit of encapsulation.
It would seem to oo way to do this would be to create four seperate instances
of the objects, each querying the tables one at a time. This would seem
rather time consuming and inefficient. Any better ideas.
A side note I am considering using the OR mapper tool LLBLGenPro. Anyone had
any good/bad experiences with this?
Thanks
One issue I have come up against is say I have a page which must display
information from four different database tables (which assume I have mapped
to four software objects). The simplest way to do this would be to create a
query across the four tables and have a single method returning all the
relevant data. However this would seem to break the spirit of encapsulation.
It would seem to oo way to do this would be to create four seperate instances
of the objects, each querying the tables one at a time. This would seem
rather time consuming and inefficient. Any better ideas.
A side note I am considering using the OR mapper tool LLBLGenPro. Anyone had
any good/bad experiences with this?
Thanks