I am trying to figure out what will give me the most pleasant code. I understand that this is a bit subjective.
I have an application that accesses a database for which I wrote an assembly that hides details about this database from all applications that use this assembly.
I also have a WPF application that uses this assembly to display various cost estimates in which I would like to use data binding.
Data binding is only possible for object properties (as far as I should work). This would mean that I need an object, preferably with INotify support and a number of objects. However, I would rather keep the INotify and WPF elements outside the assembly that handle database access.
How do others solve this: keep WPF stuff outside the database level (like INotify) and allow binding inside your WPF? Write a wrapper? Or do most people put the property / INotify class as a data transfer object directly at the database level?
source
share