Re: Data Layer architecture
- From: "Nick Malik [Microsoft]" <nickmalik@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Jul 2005 01:29:58 -0700
There are a couple of ways of using Data Transfer Objects. By Mapper, do
you mean the Assembler pattern?
To see how to use the DTO concept in .Net, see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpDTOtypedDataSet.asp
For details on how to use typed datasets as a DTO, see
http://adoguy.com/content.aspx?id=samplechapter/chapter1
and
http://www.codeproject.com/dotnet/InheritFromDataSet.asp
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"laimis" <simulai@xxxxxxx> wrote in message
news:uEJZwVmjFHA.3960@xxxxxxxxxxxxxxxxxxxxxxx
> 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
.
- Follow-Ups:
- Re: Data Layer architecture
- From: laimis
- Re: Data Layer architecture
- References:
- Data Layer architecture
- From: laimis
- Data Layer architecture
- Prev by Date: Re: images in arrays..
- Next by Date: Can't declare a usercontrol in a Class
- Previous by thread: Re: Data Layer architecture
- Next by thread: Re: Data Layer architecture
- Index(es):