TL;DR
- 単純型は、DTO では元のプリミティブ型で表現する。
内容
ドメイン型を DTO に変換する方法の 1 つである。単純型は、ラップしている元のプリミティブ型で表現する。たとえば、次の ProductCode は DTO では string になる。
type ProductCode = ProductCode of stringドメイン型を DTO に変換する方法の 1 つである。単純型は、ラップしている元のプリミティブ型で表現する。たとえば、次の ProductCode は DTO では string になる。
type ProductCode = ProductCode of string