Click here to Skip to main content
15,891,033 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionStored Procedures Pin
CodingYoshi7-Jul-09 6:18
CodingYoshi7-Jul-09 6:18 
AnswerRe: Stored Procedures [modified] Pin
Eddy Vluggen7-Jul-09 8:48
professionalEddy Vluggen7-Jul-09 8:48 
GeneralRe: Stored Procedures Pin
CodingYoshi7-Jul-09 16:59
CodingYoshi7-Jul-09 16:59 
AnswerRe: Stored Procedures Pin
David Skelly9-Jul-09 2:54
David Skelly9-Jul-09 2:54 
AnswerRe: Stored Procedures Pin
Mycroft Holmes11-Jul-09 15:29
professionalMycroft Holmes11-Jul-09 15:29 
AnswerRe: Stored Procedures Pin
CodingYoshi13-Jul-09 17:05
CodingYoshi13-Jul-09 17:05 
QuestionORM tools in domain driven design? Pin
midix28-Jun-09 8:28
midix28-Jun-09 8:28 
AnswerRe: ORM tools in domain driven design? Pin
Eddy Vluggen7-Jul-09 9:15
professionalEddy Vluggen7-Jul-09 9:15 
That's a long story, and I'm no academic. I'll try to formulate an answer, and (I hope) others will correct me where I go wrong Smile | :)

midix wrote:
where they use some base classes and interfaces to implement common functionality in the domain model. But still the model entities contain some persistence awareness because of that inheritance.


You can define a three-tier architecture where you keep all your persistence-related stuff in the DAL. The BL, although it inherits from the base-class, can be separate from the DAL - even physically on another machine if needs be. Yes, there will still be a relation between those two.

The things are loosely coupled, instead of intermixed throughout the entire codebase. Loose coupling has the advantage that you can replace it quickly, simply by writing new derived classes (or new base-classes).

You cannot avoid the coupling completely; there's some part in your application that needs to know where to persist, and how.

midix wrote:
And if we forget for a moment about that ServiceLyer but stick to the classical MVC - then where is the right place for CRUD operations when using ORM? Is it Controller or Model?


I'd say neither. Your controller could populate the model with information from the BL-classes, which could be derived from the DAL-classes. Even if you don't follow the three-tier architecture; the controller isn't forced to do SQL - but it sure is convenient if you can LINQ there Smile | :)

I are troll Smile | :)

QuestionFirst attempt at OOD: How do I extend my design? Pin
Mark McArthey18-Jun-09 3:07
Mark McArthey18-Jun-09 3:07 
AnswerRe: First attempt at OOD: How do I extend my design? Pin
Mark McArthey18-Jun-09 6:01
Mark McArthey18-Jun-09 6:01 
GeneralRe: First attempt at OOD: How do I extend my design? Pin
led mike22-Jun-09 6:41
led mike22-Jun-09 6:41 
AnswerRe: First attempt at OOD: How do I extend my design? Pin
CodingYoshi18-Jul-09 21:18
CodingYoshi18-Jul-09 21:18 
QuestionMVC Pattern question Pin
Quake2Player16-Jun-09 7:43
Quake2Player16-Jun-09 7:43 
AnswerRe: MVC Pattern question Pin
led mike16-Jun-09 11:48
led mike16-Jun-09 11:48 
GeneralRe: MVC Pattern question Pin
Quake2Player16-Jun-09 12:16
Quake2Player16-Jun-09 12:16 
GeneralRe: MVC Pattern question Pin
led mike17-Jun-09 4:50
led mike17-Jun-09 4:50 
AnswerRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 7:50
Leslie Sanford18-Jun-09 7:50 
GeneralRe: MVC Pattern question Pin
Quake2Player18-Jun-09 8:17
Quake2Player18-Jun-09 8:17 
GeneralRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 8:21
Leslie Sanford18-Jun-09 8:21 
GeneralRe: MVC Pattern question Pin
Quake2Player18-Jun-09 8:30
Quake2Player18-Jun-09 8:30 
GeneralRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 8:59
Leslie Sanford18-Jun-09 8:59 
AnswerRe: MVC Pattern question Pin
CodingYoshi7-Jul-09 17:28
CodingYoshi7-Jul-09 17:28 
GeneralRe: MVC Pattern question Pin
Quake2Player7-Jul-09 17:37
Quake2Player7-Jul-09 17:37 
QuestionClient Server Protocol Definition - Best Practices Pin
Member 404718314-Jun-09 17:16
Member 404718314-Jun-09 17:16 
AnswerRe: Client Server Protocol Definition - Best Practices Pin
Jimmanuel15-Jun-09 0:40
Jimmanuel15-Jun-09 0:40 

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.