当前位置:网站首页>面向领域模型编程
面向领域模型编程
2022-07-25 22:21:00 【红豆和绿豆】
在做整体架构分析需要分析清楚整体的领域。
领域模型是可以更好的分解,数据博模型可以设计的更加通用。一个通用的数据库模型,可以兼容不同的领域能力,
以前以及认为领域模型就是 跟数据库模型一一对应的。其实无需这样
举个例子:商品,商品类目、商品价格、商品库存、商品适用门店等,
领域模型是可以这样设计,但是数据库商品,商品关联数据,一张表就可以对多个业务特性。
这样可以减少每次数据库的变更。
这样也就是为啥需要有领域模型,也就是为啥有人总说 领域模型就是数据库模型呀,因为无需再次封装的原因。
边栏推荐
猜你喜欢

Visitor mode

数据质量:数据治理的核心

力矩电机控制基本原理

Square root of X

PySpark数据分析基础:pyspark.sql.SparkSession类方法详解及操作+代码展示

MySQL - subquery - column subquery (multi row subquery)

ArcGIS10.2配置PostgreSQL9.2标准教程

Tfrecord write and read

Ts:typera code fragment indentation display exception (resolved) -2022.7.24

Solutions to the failure of win key in ikbc keyboard
随机推荐
JS interview questions
启牛商学院和微淼商学院哪个靠谱?老师推荐的开户安全吗?
3day
3dslicer introduction and installation tutorial
The testing work is not valued. Have you changed your position?
After 2 years of functional testing, I feel like I can't do anything. Where should I go in 2022?
Wechat applet application development competition works comprehensive development record - Jinlu cultural tourism (cloud development - Overview)
On the difference between break and continue statements
How many bytes does Boolean occupy?
字符型常量和字符串常量的区别?
Playwright tutorial (II) suitable for Xiaobai
Advanced database · how to add random data for data that are not in all user data - Dragonfly Q system users without avatars how to add avatar data - elegant grass technology KIR
Imitation Tiktok homepage interface
数学规划分类 Math Programming Classfication
【Leetcode】502.IPO(困难)
访问者模式(visitor)模式
Redis foundation 2 (notes)
Some summary about function
Why does redis choose single thread?
What is class loading? Class loading process?