在 DDD 架构中,我在哪里保留帮助类? [英] In DDD Architecture where do I keep helper classes?

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

问题描述

我正在一个 DDD 项目中工作,其中包含以下层:UI、应用程序、域和基础设施.

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

助手类应该住在哪里?

更新:

例如,我说的是 Object Dumper Helper.

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

推荐答案

这要看你说的是哪种帮手.

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

如果它是一个 Helper 以友好的显示格式格式化一个值,那么它会更适合 UI.如果您在谈论 SqlServer 助手,那么它会转到 Infra.

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天全站免登陆