Hi, Great dicussion so far! So let's move beyond O/R mapping and data layer encapsulation.
The topic of transparent persistence has come up a few times. I was wondering which techniques you guys employ in order to achieve transparency. I'm thinking in terms of an application layer and a data layer, and some kind of mapping layer that sits between those. I'd like the application layer to be a fully-fledged object-oriented thing, with rich relationships between objects etc. But how can I make this layer completely data-layer-ignorant---or, at least as data-layer-ignorant as possible? For example: When I have a Person class in my application layer, does this class need to be equipped with a method Save, or can I come up with a mechanism that makes that I do not have to bother about this persistence-related functionality? And---how do I handle scenario's in which I have two Person objects living in different AppDomains that both correspond to the same Person record in the database? These are the kinds of problems that I tend to encounter over and over again. Any thoughts? Pointers to valuable resources? TIA, Stefan =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com
