I am trying to figure out what would give me the nicest code. Which is a little subjective of course, I realize.
I have an application that accesses a database for which I have written an assembly that hides details about this database from all the applications that make use of this assembly.
I also have an WPF application that makes use of this assembly to display various cost calculations in which I would like to use databinding.
Databinding is only possible to properties of objects (as far as I got to work). This would mean I would need an object, preferably with INotify support and a range of objects. However, I would prefer to keep INotify and WPF things outside the assembly that handles database access.
How do others solve this: Keep WPF things outside the database layer (such as INotify) and inside your WPF allow binding? Write a wrapper? Or do most people put a 'property'/'INotify' class as data transfer object directly into the database layer?