L
Leo
OK, this is kind of a conceptual question, so bear with me...
When does a Value Object or Data Transfer Object become a Business
Object, if it even does at all?
For instance, in J2EE we often used DTOs to solve the problem of
transferring data quickly and efficiently from our DAL (EJB) layer to
our middle and presentation tiers. The DTO was a very lightweight
object that simply stored data. We then passed that object to
different handlers and helpers to work with that object.
But I can also see the benefit of embedding the business logic in that
DTO object as well, instead of relying on handlers, etc to do the work.
In doing so, does this object then become a "Business Object" as it is
used all over the net vs a "Value Object"? Is there any real use for a
"Value Object" in dotNET outside just passing objects through
WebServices, etC?
I guess I'm just hoping that someone could explain the difference
between the two different types of objects, when to refer to an object
as one of the other, etc.
Thanks!
When does a Value Object or Data Transfer Object become a Business
Object, if it even does at all?
For instance, in J2EE we often used DTOs to solve the problem of
transferring data quickly and efficiently from our DAL (EJB) layer to
our middle and presentation tiers. The DTO was a very lightweight
object that simply stored data. We then passed that object to
different handlers and helpers to work with that object.
But I can also see the benefit of embedding the business logic in that
DTO object as well, instead of relying on handlers, etc to do the work.
In doing so, does this object then become a "Business Object" as it is
used all over the net vs a "Value Object"? Is there any real use for a
"Value Object" in dotNET outside just passing objects through
WebServices, etC?
I guess I'm just hoping that someone could explain the difference
between the two different types of objects, when to refer to an object
as one of the other, etc.
Thanks!