From DTO to ViewModel: Mapping Strategies Between Layers in C#
This article explores the differences and mapping strategies between Data Transfer Objects (DTOs) and ViewModels in C#. DTOs are used for efficient data transfer between layers, while ViewModels cater to the specific needs of the user interface. The text discusses mapping methods, including the use of the AutoMapper library and manual approaches, as well as considerations for adoption and testing.
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2025-04-14
- DOI
- https://doi.org/10.5281/zenodo.15245818
- Primary Topic
- Software Engineering and Design Patterns
- Type
- article
- Field-Weighted Citation Impact
- 0.00