Avoid Referencing Domain Model from DTOs and ViewModels

added by DotNetKicks
10/4/2017 1:49:19 PM

2 Kicks, 422 Views

If you're organizing your application following Clean Architecture and Domain-Driven Design, with your Core domain model in one project that is referenced by your UI and Infrastructure projects, you should be careful what you expose in your client-facing models. Client facing models typically reside in the UI layer as ViewModels or ApiModels, or they may be called DTOs (Data Transfer Objects).


0 comments