ドメイン オブジェクトを保持する 4 つのプロパティを持つ SchoolyearEditRequest という名前のデータ転送オブジェクトがあります。
1) 私の DTO がドメイン エンティティをラップするのは間違っていますか?
2) はいの場合、すべてのドメイン エンティティに対して、クライアント側に本当に必要なプロパティのみを含む xxxDTO "ラッパー" を作成する必要がありますか?
public class SchoolyearEditRequest
{
// Create a SchoolclassCodeDTO ???
// Create a SchoolyearDTO ???
// Create a collection of TimeTableDTO`s ???
public IEnumerable<SchoolclassCode> SchoolclassCodes { get; set; }
public IEnumerable<TimeTable> TimeTablesWeekA { get; set; }
public IEnumerable<TimeTable> TimeTablesWeekB { get; set; }
public Schoolyear Schoolyear { get; set; }
}