Re: Data Layer architecture

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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#)
------------------------------------------------------------------------
.



Relevant Pages

  • Re: Data Layer architecture
    ... business logic layer ... > using DTOMapper when it needs to persist object to database or load them ... > practice to use DTOMapper rfom the presentation layer? ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: New to n-tier (C# Web app / ASP.NET 1.1)
    ... Include a Webapplication Project in it and Name it as "PRESENTATION LAYER" ... Include a Class Librery Project and Name it as "BUSINESS LAYER" ... Go to Business layer and right click on referance and in referance go to ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Need .Net Design Help
    ... think that business errors should always be in the form of return values. ... > essentially push a message from a non-visual business layer to the ... >> You can certainly swap in a different presentation layer but the code ... >>> can in time just substitute a web gui for the win gui and not have much ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VB.net and ASP.Net Typed Datasets
    ... All the layers EXCEPT the presentation layer (the Windows Form or the ... RESULTS of the Web Form processing) are processed on the server. ... business layer is not needed at all (which you can't do right now because ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: What do People do to avoid Tight Coupling?
    ... Indicator control supports INotify interface ... Your presentation layer instantiates ... initialzes the command layer with the already instantiated indicator ...
    (microsoft.public.dotnet.languages.vb)