This video is a description of the architectural design of a typical .Net solution using separation of concerns and object mapping. This video sets a foundation for future videos and describes how to reference layers to create a physical security barrier for data and build a platform for successful Unit Testing. It describes how to manage T4 templates, entity DTOs and how to manage transfer between ORM-generated POCOs and ViewModels.
01:30 - The Onion Architecture - Jeffrey Palermo
02:00 - Solution Layers
02:30 - Data Layer - Entity Framework, model context, repository pattern
03:45 - Business Layer - physical limitations to the data layer and contains business rule classes
05:15 - Domain Layer - commonly used core classes. Helpers, utilities and a copy of the model T4 template
08:20 - UI Layer - copy entity DTOs and make them ViewModels
11:00 - Using interfaces to expose methods between Business and UI layers
13:00 - Using AutoMapper to map entity DTOs (model) and web DTOs (viewmodel)
16:00 - Controllers, actions and dependency injection
16:30 - Render model data in a list view. Step into methods and see how the chain of methods are called
Remember to subscribe to our Youtube and ITunes channels so you can keep up with all new videos are they are released. Be sure to give good comments and rate as high as possible. High ratings allow us to produce more videos for you.