O
olduncleamos
Hi all,
What is, in general, the preferred practice to transfer data between
business objects and the data layer? To be more specific, I have a
couple of business objects with state data that are stored in external
storage. The data layer take care of communicating with the storage and
return data in dataset or file stream or simple arrays. Have the
business objects directly consume a dataset seems inflexible. What
would be the prefered way of handling this most common situation?
To take this discussion further, let say that the current requirments
only requires data to come from a single source. But it is clear that
different data sources will be needed down the road. Would this extra
consideration impact your design? If so, how?
Thanks for all the suggestion and discussion in advance.
What is, in general, the preferred practice to transfer data between
business objects and the data layer? To be more specific, I have a
couple of business objects with state data that are stored in external
storage. The data layer take care of communicating with the storage and
return data in dataset or file stream or simple arrays. Have the
business objects directly consume a dataset seems inflexible. What
would be the prefered way of handling this most common situation?
To take this discussion further, let say that the current requirments
only requires data to come from a single source. But it is clear that
different data sources will be needed down the road. Would this extra
consideration impact your design? If so, how?
Thanks for all the suggestion and discussion in advance.