We're developing a DDD based system. For a particular module (the publisher) in that system, we will receive data from other objects and perform transformations on them, then write out data files.
The DDD design being developed has many custom collection classes for data...all of these objects simply contain rows of data, but they have distinct class and property names. Is there a good strategy or pattern for dealing with this situation? I.e. a way to apply the same logic to all of these objects.
Further details: For example, we may have a DataType123 class that contains a collection of Data123Row objects. Then a type Data456 class containing a collection of Data456Row objects. Let's say there are 15 differnt objects like these. Due to the DDD ideas they have domain-based names, but they are really all more or less tabular data i.e. rows and columns. We are trying to create a generic service that can treat them all the same, even though they are technically different classes.