本文介绍了数据建模和域建模之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

顺便说一句-关于数据建模,我指的是逻辑或概念数据模型-而不是物理模型.

By the way - with reference to data modelling I'm referring to logical or conceptual data models - not physical ones.

在工作中的讨论中提出了这个问题;自然,我跳到Wikipedia来获取一些基本定义-希望它们可以阐明区别-但它们没有...

The question came up during a discussion at work; naturally I leapt to Wikipedia to get some basic definitions in place - hoping that they might clarify the difference - but they didn't...

逻辑数据模型看起来非常相似(根据此定义):

Logical Data Modles seem very similar (from this definition):

位置...

领域模型与概念数据模型之间的差异似乎特别晦涩.

The differences between domain model vs conceptual data model seems particularly murky.

加剧这种混乱的一件事是(从我所看到的)领域模型通常是使用UML类图建模的-UML类图中的类实体支持方法-我们的同事认为域模型不能包含操作".我可以使用UML类图的子集来了解领域建模者-但是假设人们使用的工具支持操作",这是否危险呢?

One of the things which adds to this confusion is that (from what I've seen) a domain model is usually modelled using a UML class diagram - the class entity in a UML class diagram supports methods - our colleague maintains that a domain model must not contain "operations". I can understand domain modellers using a sub-set of a UML class diagram - but isn't it dangerous to assume people will refrain from including "operations" if the tooling they are using supports it?

推荐答案

很好的问题,问题在于它取决于术语的定义,我认为它们根据来源而略有不同.我会同意以前的答案-领域模型用于描述问题领域,至少是开发解决方案所需的部分.您描述了所有各种实体,它们之间的关系和行为.我认为这也是从域驱动设计的角度来看的观点.另一方面,数据模型用于描述系统中的数据以及它们之间的关系或关联.这对于描述需要存储在系统中的内容很有用,也可能提示如何存储.我认为数据模型将适用于您的无操作"规则,因为它们在这方面并不重要.

Good question, the problem is that it depends on the definion of the terms, I think they differ slightly based on the sources.I would agree with previous answer - domain models are for describing the problem domain, at least the part you need to develop a solution. You describe all the various entities, their relations and their behaviour. I think that this is also the view from the Domain Driven design perspective.Data models on the other hand are used for describing the data in your system and relations or associations between them. This is useful for describing what needs to be stored in the system and might also give hints how. I think data models would apply for your "no operations" rule, because they are not important in this respect.

这篇关于数据建模和域建模之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 05:44