Click here to Skip to main content
15,888,610 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: User Defined Lookups Pin
Kevin Marois27-Jun-18 10:30
professionalKevin Marois27-Jun-18 10:30 
PraiseIdentifying Vulnerable Source Code Pin
David A. Gray5-Jun-18 11:28
David A. Gray5-Jun-18 11:28 
GeneralData Mapper Pattern Using Events Pin
Paramecium135-Jun-18 7:03
professionalParamecium135-Jun-18 7:03 
GeneralRe: Data Mapper Pattern Using Events Pin
Nathan Minier6-Jun-18 1:40
professionalNathan Minier6-Jun-18 1:40 
GeneralRe: Data Mapper Pattern Using Events Pin
Paramecium137-Jun-18 6:41
professionalParamecium137-Jun-18 6:41 
GeneralRe: Data Mapper Pattern Using Events Pin
Nathan Minier7-Jun-18 6:49
professionalNathan Minier7-Jun-18 6:49 
GeneralRe: Data Mapper Pattern Using Events Pin
Paramecium137-Jun-18 7:12
professionalParamecium137-Jun-18 7:12 
GeneralRe: Data Mapper Pattern Using Events Pin
Nathan Minier7-Jun-18 7:30
professionalNathan Minier7-Jun-18 7:30 
The Repository pattern is 100% about updating domain objects against a persistence store. UoW is about making those updates atomic in nature. The Repository is purpose-structured to use the Data Mapper pattern; as the entire purpose of the pattern is to define a persistence touchstone for model classes (AKA domain objects).

You can do it procedurally in a more functional/workflow model (such as the controller queuing and update) or, as you're advocating, through an event driven paradigm. In desktop applications I like to hook updates to ViewModels through INotifyPropertyChanged, for instance, so that user updates to relevant objects wrapped in ViewModels will update when the user updates them.

Event-driven updates are basically a must in any asynchronous approach, but I would argue that they need to be hooked to model handling logic rather than the models themselves.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

SuggestionRe: Data Mapper Pattern Using Events Pin
Eddy Vluggen6-Jun-18 1:50
professionalEddy Vluggen6-Jun-18 1:50 
GeneralRe: Data Mapper Pattern Using Events Pin
Paramecium136-Jun-18 8:16
professionalParamecium136-Jun-18 8:16 
QuestionUnified Naming Conventions Pin
David A. Gray29-May-18 8:53
David A. Gray29-May-18 8:53 
AnswerRe: Unified Naming Conventions Pin
Eddy Vluggen31-May-18 0:17
professionalEddy Vluggen31-May-18 0:17 
GeneralRe: Unified Naming Conventions Pin
David A. Gray31-May-18 14:14
David A. Gray31-May-18 14:14 
GeneralRe: Unified Naming Conventions Pin
Eddy Vluggen1-Jun-18 0:04
professionalEddy Vluggen1-Jun-18 0:04 
GeneralRe: Unified Naming Conventions Pin
David A. Gray1-Jun-18 11:28
David A. Gray1-Jun-18 11:28 
GeneralRe: Unified Naming Conventions Pin
Eddy Vluggen2-Jun-18 1:19
professionalEddy Vluggen2-Jun-18 1:19 
GeneralRe: Unified Naming Conventions Pin
David A. Gray2-Jun-18 6:48
David A. Gray2-Jun-18 6:48 
GeneralRe: Unified Naming Conventions Pin
Eddy Vluggen3-Jun-18 0:39
professionalEddy Vluggen3-Jun-18 0:39 
GeneralRe: Unified Naming Conventions Pin
David A. Gray3-Jun-18 13:08
David A. Gray3-Jun-18 13:08 
AnswerRe: Unified Naming Conventions Pin
Gerry Schmitz1-Jun-18 7:56
mveGerry Schmitz1-Jun-18 7:56 
GeneralRe: Unified Naming Conventions Pin
David A. Gray1-Jun-18 11:37
David A. Gray1-Jun-18 11:37 
GeneralRe: Unified Naming Conventions Pin
Gerry Schmitz3-Jun-18 6:22
mveGerry Schmitz3-Jun-18 6:22 
GeneralRe: Unified Naming Conventions Pin
David A. Gray3-Jun-18 13:00
David A. Gray3-Jun-18 13:00 
QuestionXML Based Blog Pin
Rakanoth28-May-18 1:50
Rakanoth28-May-18 1:50 
AnswerRe: XML Based Blog Pin
Eddy Vluggen30-May-18 2:21
professionalEddy Vluggen30-May-18 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.