On 09-01-2011 01:32, Big Steel wrote:
On 1/8/2011 8:11 PM, mp wrote:
another silly newbie question(s):
So I have a view/presenter/business layers setup
(i have a service layer too, but not sure what i'm supposed to be
doing with
that...at least in this example)
The service layer
[...]>
If this is a Windows desktop solution and it is not a multi user
application, then you don't need the service layer. You can have
the BLL
directly call the DAL.
ok in my current project I don't need the service layer...I have
just
been
trying to 'copy' the mvp project layout you linked me to recently
(obviously
i don't understand what i'm doing)...the other responders have
pointed
out I
shouldn't have separate projects and that all these 3 pieces are
in one
layer...the sample project had 4 projects and called them different
layers(iirc)
I would base everything you do based on what the tutorial project is
showing you, so that you understand logical tier separation (separate
project in a layer).
UI layer
Presenter layer
BLL layer
DAL layer
I would consider it very unusual to have both a UI and
a presenter layer.
Why even have that? I have seen it where the UI and Presenter are in the
same project --- no harm, no foul and cut down on the total number of
projects in a multi UI projects solution.
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
It all sounds nice, and
then there is the real world.