AutoMapper & DTOs in .NET C#

Опубликовано: 29 Сентябрь 2024
на канале: Keep it simple, stupid.
196
2

How I map and expose the database data using AutoMapper in my C# .NET 6 Web API. We don't want our APIs to return / expose passwords or secrets. Leave those out!

(Free) The starting code can be found here: https://www.patreon.com/posts/net-cle...

Starting point is the project built in my recent .NET 6 Web API + Blazor WASM authentication series, found here:    • .NET 6 API & Blazor Auth  

If you found this video helpful, like & subscribe, that means a lot to me!
And you may buy me a coffee: https://www.buymeacoffee.com/kis.stupid

00:00 Intro
00:05 AutoMapper What & Why?
04:27 Configure AutoMapper
20:40 Extension methods
23:25 Bonus

#csharp #dotnet #entityframework #identityframework #mssqlserver #mssql #cleanarchitecture #authentication #api #development #local #web #fullstack #webdevelopment #authorization #jwt #bearer #cqrs #mediatr #automapper