Mapping to and from view models can be very tedious and error-prone. Here, review some options that exist to simplify the mapping process.
- [Instructor] Mapping to and from view models…can be very tedious and error prone.…In this video I'm going to talk about some options…that exist to simplify the mapping process.…The first option is to just use the business objects…directly within the view models.…This is generally not recommended.…While it prevents having to do any mapping,…very rarely does the benefit outweigh the issues.…First, this couples the view model to the business model,…which might not seem like an issue at first,…but it will make refactoring harder…and could be a significant issue when business objects…change in implementation but the view doesn't need to.…
Business objects usually have more information…than is needed for any given view.…For example, updating the contact information…for a salesperson doesn't update the whole salesperson,…so it shouldn't be possible for that screen…to update more than the contact information.…Actions that a user perform within a view…in a real application usually contain information…from outside a single business model…
- What is good application architecture?
- Real-world software and the SDLC
- Common knowledge and maintenance
- Choosing an architecture
- Design patterns with EF
- Debugging and error handling
- Architecture for the web with ASP.NET
- Designing for unit testing
- Strategies for dealing with common performance issues
Skill Level Advanced
Deploying ASP.NET Core Applications (2017)with Nate Barbettini57m 57s Intermediate
Microsoft SQL Server 2016 Essential Trainingwith Martin Guidry3h 18m Intermediate
1. Why Do All of This Architecture?
2. Design Patterns with EF
3. Error Handling
4. Architecture for the Web with ASP.NET
5. Designing for Unit Testing
6. Entity Framework Mistakes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.