Question

Please correct me if I'm wrong.

We may say Domain Model to represent:

a) The M part of a MVC structure, having on the M part, a Domain Driven Design pattern applied.

b) A scheme of entities, their attributes and relationships in a certain way. Could also represent a M part on a MVC but, on this case, regardless the pattern used.

c) A Domain Model Design Pattern where "a Domain Model creates a web of interconnected objects";

d) As a Domain Object (that could be, for example, an object on our MVC model regargind a certain domain);

Could we say that d) is the same as b) ?

Thanks a lot.

Was it helpful?

Solution

Shorty answer: no, they are not the same.

Domain objects actually are (removed) .. look at the comment from @meze .. there is a link.

This part "scheme of entities, their attributes and relationships" is kinda related to structure of the data. But you Domain objects should not be aware of fact that they are stored or even that there exists a storage. That is responsibility of Data access layer.

And the Domain model is the overarching structure which manipulates different types and numbers of Domain objects.

OTHER TIPS

Domain Object is an element of Domain Model. Domain object is b).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top