.NET 7 AutoMapper Data Transfer Objects DTOs explained for everyone

Опубликовано: 29 September 2024
на канале: Code-Academy
500
10

Table of Contents:
00:00:00 | Introduction to Auto Mapper and Data Transfer Objects (DTOs).
00:01:58 | Creating Web API Project.
00:05:30 | Installing EFCore, EFCore.SqlServer, EFCore.Tools NuGet packages.
00:09:15 | Setting up the Database Connection String.
00:11:00 | Creating Application Db Context Class.
00:13:00 | Registering the Database Connection in the Program.cs file.
00:14:15 | Creating Employee Model.
00:16:51 | Add Database Migration.
00:21:33 | Creating Response and Request DTOs.
00:25:35 | Install AutoMapper.Extension.Dependency Injection NuGet package.
00:26:50 | Registering Auto Mapper Service in Program.cs file.
00:27:24 | Creating Auto Mapper Profile.
00:30:00 | Creating Employee API Controller.

Download source code | https://github.com/CodeAcademyCA/Auto...

Related Videos
   • .NET 7 AutoMapper Data Transfer Objec...   | AutoMapper Data Transfer Objects DTOs explained
   • .NET 7 Navigation Component in Blazor...   | Navigation Component in Blazor Web Assembly using NavigationLock
   • .NET 7 Object Relational Mapper (ORM)...   | Object Relational Mapper ORM Explained for Everyone
   • .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 Auto Mapper?
AutoMapper in C# is a library used to map data from one object to another. It acts as a mapper between two objects and transforms one object type into another. It converts the input object of one type to the output object of another type until the latter type follows or maintains the conventions of AutoMapper.

What is DTO?
A data transfer object (DTO) is an object that carries data between processes. You can use this technique to facilitate communication between two systems (like an API and your server) without potentially exposing sensitive information. DTOs are commonsense solutions for people with programming backgrounds.