Please Note that I have changed address
Go to
Baking Ways / Productive Bytes



Search This Blog

Pages

Showing posts with label patterns. Show all posts
Showing posts with label patterns. Show all posts

Monday, June 7, 2010

The Model View Controller and Presenter Pattern

In this post I will just give you some link I found that describes quite clearly how the Model View Presenter Pattern (MVP) and the Model View Controller pattern work.
As usual I will add my comment when I have a bit of time, in the mean time I hope you will find these link usefull.




This is an excellent introduction to MVP pattern from Nikola Malovic

Model-View-Presenter-_2800_MVP_2900_-pattern.aspx

Here you will get a closer look to the same pattern in the form of MVP supervising controller from the same author

model-view-presenter-mvp-design-pattern-close-look-part-1-passive-view.aspx

And again the MVP passive view explained with a similar example by Nikola to hightlight the differences with the MVP supervising controller

model-view-presenter-mvp-design-pattern-close-look-part-2-passive-view.aspx

For a comparison between MVP and MVC you can have a look here.

model-view-presenter-mvp-vs-model-view-controller-mvc.aspx

Another excellent and quick introduction to the MVP supervising control pattern can be found here

ModelViewPresenterdesignpatterndatabinding.aspx

MVC_intro12122005162329PM/MVC_intro.aspx

Sunday, May 23, 2010

How to Separate the DAL Layer and BLL Layer in a a C# application

Link to Class diagrma Layering
Link to Class Diagram Mail System.
NClass 2.0 or higher is needed to read the file.  NClass Website

In this article we are going to discuss how to separate the Data Access Layer (DAL) form the Business Logic Layer (BLL) using

1) The Abstract Factory Pattern
2) The Model Provider Pattern
3) Reflections


On the Class Diagram Mail System you will find many notes on how to separate the BLL from the DAL
I will first comment on the Class diagram you will find on the link. After I will develop an applicaton. This is a working in progress. As usual if you have any suggestion or improvement, just add a comment.