Lyra
Learn
AI Learning Platform
π Midnight
π Comfort
π₯ Ember
π Paper
β Contrast
Exams
Sign in to track progress
β Back to the lesson
Module 6 Β· Quiz
AutoMapper Without Tears
1. What is the primary purpose of using AutoMapper in applications?
To manage databases
To reduce boilerplate code for mappings
To generate documentation
To handle user authentication
2. What is a recommended practice for defining AutoMapper profiles?
Keep profiles complex with many conditionals
Place profiles in a central location for easy access
Group mappings by feature in Profile classes
Define profiles in the UI layer
3. Which AutoMapper method should be used to translate mappings directly into a SQL projection?
Map
ProjectTo
CreateMap
ToDataSourceResult
4. What is a suggested team rule regarding the use of explicit mapping versus AutoMapper?
Use AutoMapper for everything
Only use explicit mapping for DTOs
Use AutoMapper for property-for-property mappings and explicit code for complex transformations
Avoid using AutoMapper completely
Submit answers
Continue: Cross-Cutting Concerns β
Review this lesson
Retake quiz