Information générale
Catégorie:
Programmation Orientée Object
>No, the BR should not directly call into the database. If it needs additional data in the rule, it should call the data object, which then accesses the data and returns the result.
So is it ok for the BO and the BR to have connections to data-objects?
Kev
>
>>The BR has to check how many records the client has in one table, and how many records the client has in another table, what's getting me is that this BR is a required validation by the BO, but the checks it carrys out, will probably be best done from SPROC's in the DB, so should the BR call SPROC's in the DB? If so, should a BR have a connection to the DB at all?
>>
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement