开发者

DDD "Module" in C#.NET

开发者 https://www.devze.com 2022-12-24 15:31 出处:网络
In the Evan\'s DDD book he speaks of segregating concepts in the domain with \"modules\". The term \"module\" can be translated to a number of different things in software development, both conceptual

In the Evan's DDD book he speaks of segregating concepts in the domain with "modules". The term "module" can be translated to a number of different things in software development, both conceptual and concrete, so I'm wondering how would this concept of DDD modules be expressed in a C#.NET system and if there is any direct correlation to other uses of the term "module" in software development (For example, Evans mentions that some developers express DDD modules as Java packages which I think would be analogous to .NET assemblies).

I think, you could probably express 开发者_运维技巧this concept literally with separate .NET assemblies or perhaps with namespaces (which is kind of what we're doing now). We are planning to reduce the number of projects within our solution to improve build time so I'm really interested in how this concept could be applied to a single assembly.


You already answered your own question. That you use either projects or namespaces as a logical separation of modules. You can also use the break down of projects on their type to imply meaning also, as in web services projects are exposed modules vs internal ones etc.

Personally I am a fan of using actual projects and later if the number of DLLs is ever an issue to condense it using ILMerge in my production builds, of course my solution is only around 30~ projects at the moment.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号