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*/ ☕️
https://www.buymeacoffee.com/NetcodeHub
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.
Download Source code | https://github.com/Netcode-Hub/AutoMa...
Related Videos
• .NET EFCore | Entity FrameworkCore CR... | Entity FrameworkCore CRUD Operations using SQL Server Database
• .NET EFCore | Scaffold SQL Database w... | Scaffold SQL Database with DB First migration in Web API using EntityFrameworkCore.
• .NET EFCore | Web API Entity Framewor... | Web API EntityFrameworkCore (EF7) Pagination using Skip() and Take() methods.
• .NET EFCore | Send Email in Web API u... | Send Email in Web API using Mailkit SMTP.
• .NET EFCore | AutoMapper Data Transfe... | AutoMapper Data Transfer Objects DTO with Web API Explained.
• Video | Blazor WebAssembly Chat with SignalR using WebSockets.
• .NET EFCore | Create JSON Web Token (... | Create JSON Web Token (JWT) for User Registration and Login using Password Hash and Salt.
• .NET EFCore | EFCore All Relationship... | EFCore All Relationships (11, 1n, nn ) with Entity Framework Core SQL Server.
• .NET EFCore | Read JWT Authorization ... | Web API Role - Based Authorization with JSON Web Token (JWT).
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.
Watch video .NET EFCore | AutoMapper Data Transfer Objects DTO with Web API Explained online without registration, duration hours minute second in high quality. This video was added by user Netcode-Hub 28 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,169 once and liked it 36 people.