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 interconnect开发者_如何学Goed 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.
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.
Domain Object is an element of Domain Model. Domain object is b).
精彩评论