Implementing IPropertyChanged and IEditableObject in a lightweight wrapper Class?

We have a 3 tier windows forms application (data,business and UI) where the database entities are modelled into objects in the data tier.

We would like our objects to be databindable and as such they must implement IPropertyChanged and IEditableObject but adding this to the data layer seems like the wrong thing to do.

Is there anyway we can 'wrap' the data layer objects in such a way as to make them bindable without changing the internal properties and methods

Thanks in advance..




Answer this question

Implementing IPropertyChanged and IEditableObject in a lightweight wrapper Class?

  • TimElvidge

    Hi,glynnd

    You can try to make your objectes inherited from the DataSet class,you can refer the Microsoft Enterprise Sample: Duwamish

    For more information about Duwamish,please see:

    http://msdn2.microsoft.com/en-us/library/aa288561(VS.71).aspx

    Hope this can help you.Regards.

    Ye



  • Implementing IPropertyChanged and IEditableObject in a lightweight wrapper Class?