This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Provides projection mapping from an IQueryable sourceto a target type. | |
| /// | |
| /// This allows from strongly-typed mapping and querying only necessary fields from the database. | |
| /// It takes the place of Domain -> ViewModel mapping as it allows the ViewModel to stay as | |
| /// IQueryable. AutoMapper works on in-memory objects and will pull all full records to perform | |
| /// a collection mapping. Use AutoMapper for Input -> Domain scenarios, but not DAL. | |
| /// | |
| /// Reference: http://devtrends.co.uk/blog/stop-using-automapper-in-your-data-access-code | |
| /// </summary> |