Re: Data Layer architecture
- From: "Frans Bouma [C# MVP]" <perseus.usenetNOSPAM@xxxxxxxxx>
- Date: Fri, 22 Jul 2005 01:11:14 -0700
Edwin Yip wrote:
> Hi,
>
> Of course the send option is the best. I thinkd the architecture
> should looks like:
>
> presentation layer
> |
> business logic layer
> |
> data access layer
>
>
> Check MS's PetShop sample, you will get your idea clearer.
If there's *ONE* sample which is badly constructed and horrible coded
it's the MS Petshop sample. It's solely developed to show how fast .NET
can be, not how to write an application in an n-tier fashion.
FB
>
>
> "laimis" <simulai@xxxxxxx> ???
> news:uEJZwVmjFHA.3960@xxxxxxxxxxxxxxxxxxxx ???...
> > Hey guys,
> >
> > I just recently got introduced to data mappers (DTO mapper). So now
> > I have a SqlHelper being used by DTOMapper and then business layer
> > is using DTOMapper when it needs to persist object to database or
> > load them back. Everything is working nicely so far. My question
> > is, is it OK practice to use DTOMapper rfom the presentation layer?
> > For instance, if I want to present in HTML format the list of
> > entries in my database, should I use DTOmapper from the
> > presentation, or instead use Entries collection method which
> > internally uses DTOMapper.
> >
> > THe second option sounds more cleaner and more seperated. Just want
> > to see what you guys think...
> >
> > Thanks!
> >
> > Laimis
>
> > > Edwinyeah's NUnitPartner
> > > Automatic NUnit test case generation!
> > > http://www.freewebs.com/edwinyeah/
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
.
- References:
- Data Layer architecture
- From: laimis
- Re: Data Layer architecture
- From: Edwin Yip
- Data Layer architecture
- Prev by Date: Re: get base com type name
- Next by Date: Re: C# Service Terminating Itself
- Previous by thread: Re: Data Layer architecture
- Next by thread: Re: Data Layer architecture
- Index(es):
Relevant Pages
|