filmov
tv
.NET EFCore | AutoMapper Data Transfer Objects DTO with Web API Explained

Показать описание
Thanks so much for watching 🙌🏾 LIKE 👍, SUBSCRIBE & turn on Notifications 🔔 to know when I upload new videos EVERYDAY!
/*You can buy a coffee for me*/ ☕️
Table of Contents:
00:00:00 | Introduction of Auto Mapper and Data Transfer Objects (DTOs)
00:02:46 | Installing AutoMapper.Extensions., EFCore , EFCore.SqlServer, EFCore.Tools.
00:03:52 | Add Employee Model.
00:06:30 | Create Data Transfer Objects (Request & Response).
00:08:53 | Setting up Database Connection String.
00:10:24 | Create Context model for database connection and tables definitions.
00:11:20 | Register Database Connection and Auto Mapper.
00:13:37 | Create Auto Mapper Profile model.
00:15:54 | Create Employee Controller.
00:24:01 | Add Database Migration.
Related Videos
# What is AutoMapper? #
AutoMapper is a library that helps us to transform one object type to another in a very easy accurate way. We start by creating our web API. dotnet new webapi -n SampleMapper. Once we create our application we need to install the AutoMapper nuget package into our application.
# What is DTO used for #
A DTO is helpful whenever you need to group values in ad hoc structures for passing data around. From a pure design perspective, DTOs are a solution really close to perfection. DTOs help to further decouple presentation from the service layer and the domain model.
/*You can buy a coffee for me*/ ☕️
Table of Contents:
00:00:00 | Introduction of Auto Mapper and Data Transfer Objects (DTOs)
00:02:46 | Installing AutoMapper.Extensions., EFCore , EFCore.SqlServer, EFCore.Tools.
00:03:52 | Add Employee Model.
00:06:30 | Create Data Transfer Objects (Request & Response).
00:08:53 | Setting up Database Connection String.
00:10:24 | Create Context model for database connection and tables definitions.
00:11:20 | Register Database Connection and Auto Mapper.
00:13:37 | Create Auto Mapper Profile model.
00:15:54 | Create Employee Controller.
00:24:01 | Add Database Migration.
Related Videos
# What is AutoMapper? #
AutoMapper is a library that helps us to transform one object type to another in a very easy accurate way. We start by creating our web API. dotnet new webapi -n SampleMapper. Once we create our application we need to install the AutoMapper nuget package into our application.
# What is DTO used for #
A DTO is helpful whenever you need to group values in ad hoc structures for passing data around. From a pure design perspective, DTOs are a solution really close to perfection. DTOs help to further decouple presentation from the service layer and the domain model.
Комментарии