简体   繁体   中英

What is the difference between Domain model and Design model?

I'm creating a design model through the domain model. I'm not getting what is the difference between design model and domain model. We just have to add attributes and methods to domain model? How do I create design model through domain model?

The Domain "model" is just a part of the total design, it is concerned with the problem domain and attempts to create a useful working model of the domain in which you are creating a solution for (note this doesn't have to model the domain exactly). It typically/ideally is isolated from the "solution design" which is what technology frameworks, databases, UI etc you are using to get working software

Domain model is a business model. It does not depend on software system. Design model is a model of software system.

Example. Domain - Bookkeeping. Domain model element - account, credit, etc

Design - Bookkeeper system. Design model element - database, GUI, etc

It is Okey, if some elements from domain model will appear in design model, for example, account (from domain model) can become the account table in database schema (design model).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM