When using Entity Framework code-first for example, is it advisable to use DTO classes inside your view model? Or should you directly use the entity classes?
I currently do it this way to not have to use [NotMapped] attribute and set some calculated properties on my DTO instead.
I guess it also has the benefit of not having to apply validation annotations directly on the entity class.
The reason for this question is if this is the correct way to go. What are your thoughts?