Just got back from giving a presentation on Domain-Driven Design (went great, got phenomenal feedback and sparked about an hour of conversation afterwards). While I was creating the presentation, I got to thinking about how the domain model and entity model don't necessarily coincide. The entity model should be more concerned with persistence while the domain model should encapsulate your business logic. It made me think about presentation. We all agree that your business objects shouldn't be concerned with presentation. I therefore propose that the presentation model COULD (I'll refrain from saying should at this point) be a separate model from your domain model. There might be some common structures between your three models (and should be represented as such) but your presentation model should only be concerned with those aspects of the domain model that need to presented to the user (or retrieved from them) to achieve the task at hand. I'm still building up this argument, but I wanted to get my thoughts out to you guys to see what you think about it. Any thoughts, concerns, or objections to my logic?--Mike
I’m 100% with Josh opinion.
Corrado
I frankly missed you on this, but it sounds a little bit complicated, while I love using viewmodels on the UI side, I also love being able to use what technologies like LINQ/EF offer me (I mean customer.Address=”foo”; datacontext.SubmitChanges())
Corrado
From: wpf-di...@googlegroups.com
[mailto:wpf-di...@googlegroups.com] On Behalf Of Mike Brown
Sent: venerdì 19 settembre 2008 06:19
To: wpf-di...@googlegroups.com
Subject: [WPF Disciples] Re: Presentation Model vs Domain Model vs Data
Model
Okay, now that I've got at least two people who don't think I belong in a white jacket and padded room (at least on this topic) let's try to solidify the concepts.