English 中文(简体)
域建模应当作为模型加以纳入?
原标题:Domain modelling, should Domain be included as a model?

让我们说,我们有一个领域,包括客户、订单和每项命令令状项目。

Thus we have in our domain model: Customer Order OrderItem

什么后果、利弊以及是否也把领域作为模式?

That is, Domain (containing several customers) Customer Order OrderItem

Perhaps it could be used to store metadata/configurations for an instance of a domain? What else?

目 录

这是否被视为一种反家长的 some?

Anyways, since this board prefers questions that can be answered and not just discussed- my question is; Is this good or bad practice? (and why?)

编辑:我刚刚认识到,如果将领域纳入领域模式,那么实际领域就会扩大,不再提及“主要”领域。

最佳回答

如果采用“主人”的方式,你指的是将客户(如客户类型)或贴现集团等客户或类似客户的客户组合起来的一些具有商业意义的方法,那么肯定会形成母子表。 客户往往有多种外国钥匙,如多个“核心”。

但是,如果你告诉我们客户如何被归类为“主人”,使客户成为某个特定领域的成员,以及如何将他们与其他客户区分开来,那么答案可能比较容易。

因为除非各集团之间有有意义的区别,否则就是一种抽象的违禁行为,答案是没有的,没有。

问题回答

暂无回答




相关问题
SQL Server - How many users do I *really* need?

I m setting up an application, and I m looking into purchasing a license for SQL Server. My question is pretty simple (though may have a complicated answer...) How many users accounts do I really ...

Object Graph / Persistence Question

I m currently working with an online application that requires multiple screens/steps in order to complete. The application domain is modeled using an object graph. Persistence to and from a database ...

Why does stack get truncated in Exception.StackTrace?

Why does the high part of the stack (in Exception.StackTrace) gets truncated? Let s see a simple example: public void ExternalMethod() { InternalMethod(); } public void InternalMethod() { try ...

ASP.NET MVC and Service Oriented Architecture

I would like to know how do i incorporate a feature like wcf within and MVC application. My current idea of the architecture is as follows: EntityFramework -> ASP.NET MVC (Views) ...

热门标签