ViewModels and AutoMapper in Razor Pages

added by DotNetKicks
2/14/2018 1:26:10 PM

2 Kicks, 257 Views

The Razor Pages PageModel class is part controller, part ViewModel. In this article, I take a look at the ViewModel part of the role that the PageModel plays, and how tools like AutoMapper can be used to reduce the amount of code you need to write when assigning values between your entity model and your ViewModel.


0 comments