实体控制边界(ECB)与模型视图控制器(MVC) [英] Entity Control Boundary (ECB) vs Model View Controller (MVC)
问题描述
我不确定我是否有正确的概念.
I'm not sure if i got the right concept.
有人告诉我
边界=视图
实体=模型
控制=控制器
但是根据我对MVC的了解. (胖模型,瘦控制器)
however based on my knowledge of MVC. (fat model, thin controller)
不是边界=控制器,控制=模型(业务逻辑),还是实体=模型(orm类或仅作杂物的类似实体类).
Isn't the Boundary = Controller, Control = Model (the busienss logic) and Entity = Model (The orm classes or similar entity classes which does only crud ).
我可能是错的,请指导我!
I may be wrong, please guide me!
推荐答案
实际上,您的第一个定义完全正确.单词的含义有时会令人困惑.以下链接确认并总结了两种模式(将ECB命名为MVC的变体):实体控制边界模式
Actually your first definition is simply correct. The meaning of words is sometimes confusing. The following link confirms and summarizes both patterns (naming ECB a variant of MVC): The Entity-Control-Boundary Pattern
这篇关于实体控制边界(ECB)与模型视图控制器(MVC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!