views:

82

answers:

1

Hi

Some Background :

Many moons ago, i wrote a Library (SDK) which makes it possible to integrate with some 3rd party accouting software. One public class exposed by the SDK was the Customer class, which in turn collaborated with a CustomerContacts collection. These classes supports n-level undo + validation rules ect. In order to user this SDK, your GUI would simply reference this SDK library and the freely use the exposed classes.

Question :

The project that im currently working, uses SQL server as database, also contains a Customer class within its business layer. Now i would like my Customer class to collaborate with the SDK Customer class,but the SDK library must be completely invisible to my GUI.

I need advice on how to do this. I would like to wrap the SDK Customer in some way, exposing certain properties and report back on broken business rules ect.

Thanks

+1  A: 

Make the SDK-Customer-class an attribute/data-member of your new Customer class, and add member methods to your new class that calls the appropriate methods on the SDK-class.

slashmais