Hello Navaneet, I'll put in my 2 cents..
DTOs are strictly used for TRANSFERRING data. Think of it as a data
structure. The code for fetching or saving data should not be in a
DTO. It should be in DAL objects, and invoked from BLL objects.
Regards,
Jim
Hi Jim,
Thanks for replying me. I don't have Save functionality in DTO class.
"ProductItem" is the DTO class which contains only the data structure. So is
this correct approach ?
> Hello Navaneet, I'll put in my 2 cents..
>
[quoted text clipped - 4 lines]
> Regards,
> Jim
jj - 30 May 2008 11:48 GMT
Hello Navaneet,
Your ProductItem class is a DTO. there is nothing wrong with it. Just
remember to mark your DTO classes as serializable if you want to send
them using web services or remoting. I know you know about this, but
just a reminder.
Regards,
Jim