I have a collection of line items of types Sales Order, Purchase Order and Invoice. I need to use all three in multiple locations.
The collections have items with a parent ID and number included. Worked fine until another BusinessBase class came along whose primary field was not the same type. I now have two objects (BusinessBase 1.53) which do not have the same data type for their ParentID: one uses a Guid, the other a long.
Is a criteria object sufficient to choose the correct CRUD actions or do I need more than one object?
Thanks in advance,
_E
The objects are not the same object. The collection being returned is the same but the object(s) that needs the filled collection have different datatypes for their ids. I need the collections to be reuseable by other classes so they can get the same data from our data warehouse.
I *will* need a new table to store these values, but I think I one class can fill the collections. I erred in saying the behaviour is different... it's not, only some criteria changes. That's easy enough.
I jumped the gun. (Though the sky does look to be falling today.)
_E
I broke down and just mapped all the fields involved and made an abstract class to contain the common fields. It turned out the storing database had multiple programmers who called the same type of data by different names and datatypes. I've poured them into a common cup and the DataPortal code handles each one and converts the datastore to a more reasonable value.
I think that contributed to how difficult it appeared to be.
Thanks for replying everyone.
_E
Copyright (c) Marimer LLC