Cheers Bob,
will investigate this further. Unfortunately, as with everything the project has moved on and the deadline is looming so no time to refactor now.
Just been (briefly) reading the gang of four book on composites, looks like its useful for calling common methods on objects that may...
Hi chiph,
we've aready discussed using ICompare earlier in the thread. I need to know what the differences are, not just that the objects are different. So for example in my collection of item objects I need to know exactly what are the differences in each item, are there any new items, has an...
Cosmic jam there Bob!
Actually if we're talking about interoperability then this is where I put my Web Service hat on (for I work in the internet space) and could argue that in fact all your business logic should do at the DAL is create XML, period. It's then up to the consuming data store to...
We've done a little more work on this and have written a comparator class that takes two objects that are of the same type and uses reflection to get a list of object properties. We then iterate over the property array and use the object equal method to see if there are any differences between...
Hmmm, ok then we agree to disagree.
If you are working on a ground up design of a system then there is no reason why the underlying database design cannot cater for future flexibility and extension. I would suggest that if you have had to jump through hoops in the past to get your business...
Hi steve, thanks for the reply.
I don't really want to go too deeply into the business case behind the functionality but I basically have a "product" which a user can own an instance of. Now a product instance can have, for example, several other users and/or several items associated with it...
Hi all,
I'm trying to write some code to compare two complex objects, by which I mean objects that contain other objects that contain other objects and so on (I guess that makes them composite objects). I need to know what differences there are either in the properties of each object or in the...
Designing objects first is not usually the best approach. I've always found that if you design the underlying data model first then the objects (business entities in microsoft speak) generally drop out from there. You can use ORM (object relational mapping) techniques to map your underlying data...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.