在DDD架构我在哪里保持辅助类? [英] In DDD Architecture where do I keep helper classes?

查看:152
本文介绍了在DDD架构我在哪里保持辅助类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在DDD项目中包含这些图层:UI,应用,领域和基础设施

I'm working in a DDD project where contains these layers: UI, Application, Domain and Infrastructure.

应该在哪里助手类生活?

Where should the helpers classes live?

更新:

我在谈论一个对象自卸车帮手例子。

I'm talking about a Object Dumper Helper for example.

推荐答案

这取决于什么样的帮助,你在说什么。的

It depends on what kind of helper you are talking about.

如果它是在友好的显示格式格式的值,​​那么就适合在UI好帮手。如果你是在谈论一个SqlServer的帮手,那么它去红外线。

If it's a Helper that format a value in a friendly display format, then it would fit better in the UI. If you are talking about a SqlServer helper, then it goes to Infra.

这篇关于在DDD架构我在哪里保持辅助类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆