How to Use AutoMapper v10 in ASP.NET Web API 2
3.9 هزار بار بازدید -
3 سال پیش
-
How to use automapper v10
How to use automapper v10 in asp.net web API controller is something I had to really research. Automapper version 10 is the latest version, but its documentation didn't really help me much on how to use it in ASP.NET MVC applications.
I made this video to show any of you still struggling with how to include automapper in your projects via dependency injection using the Unity dependency injection container in C#.
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Subscribe to the channel ✔️
@heightabovesealevel
Support me on Patreon
Patreon: heightabovesealevel
Click the 🔔 to turn on notifications so you don't miss anything.
Come hang out on DISCORD!
Discord: Discord: discord
How To Pick A Programming Course
What to Know Before Buying an Online ...
25 Programming Words Many Courses Confuse
25 Software Words Many Courses Confuse
A tip is always appreciated :)
https://streamelements.com/heightabov...
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Timestamps:
0:00 - Intro
0:47 - Brief Recap of Dependency Injection
4:13 - Dependency Injection with Unity Container
4:56 - Template Project We'll Be Using Automapper in
7:52 - The Issue Automapper Will Be Solving
9:00 - Packages You'll Need To Install
10:33 - Unity.AspNet.WebApi Package
11:10 - What To Do After Installing Unity DI Container
11:56 - How To Use AutoMapper
18:38 - Brief Recap of Everything So Far
20:14 - Injecting AutoMapper Into the Web API Controller
22:20 - Mapping Objects From the Database
24:22 - What the Application Looks Like
24:37 - Testing the API Using Postman
29:30 - Testing the API in the Application Itself
30:29 - Final Recap
32:00 - Outro
Microsoft Dependency Injection article:
https://docs.microsoft.com/en-us/aspn...
Automapper Documentation:
https://docs.automapper.org/en/stable/
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Here's my other social media; amazing stuff over there too!
🎮 TWITCH ➼ Twitch: avatarvick
📷 INSTAGRAM ➼ Instagram: heightabovesealevel
😂 TWITTER ➼ Twitter: Vicktor_Oti (VICKTA)
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
🎵 Music provided by:
OKINAWA by Huski Bear SoundCloud: okinawa
Music provided by Free Vibes: https://goo.gl/NkGhTg
Argofox:
VIRO - Believe
VIRO - Believe [Argofox Release]
Marxist Arrow - Twin Musicom
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
#programming #automapper #webapi
Thank you for watching.
Subscribe, and I'll see you in the next video.
I made this video to show any of you still struggling with how to include automapper in your projects via dependency injection using the Unity dependency injection container in C#.
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Subscribe to the channel ✔️
@heightabovesealevel
Support me on Patreon
Patreon: heightabovesealevel
Click the 🔔 to turn on notifications so you don't miss anything.
Come hang out on DISCORD!
Discord: Discord: discord
How To Pick A Programming Course
What to Know Before Buying an Online ...
25 Programming Words Many Courses Confuse
25 Software Words Many Courses Confuse
A tip is always appreciated :)
https://streamelements.com/heightabov...
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Timestamps:
0:00 - Intro
0:47 - Brief Recap of Dependency Injection
4:13 - Dependency Injection with Unity Container
4:56 - Template Project We'll Be Using Automapper in
7:52 - The Issue Automapper Will Be Solving
9:00 - Packages You'll Need To Install
10:33 - Unity.AspNet.WebApi Package
11:10 - What To Do After Installing Unity DI Container
11:56 - How To Use AutoMapper
18:38 - Brief Recap of Everything So Far
20:14 - Injecting AutoMapper Into the Web API Controller
22:20 - Mapping Objects From the Database
24:22 - What the Application Looks Like
24:37 - Testing the API Using Postman
29:30 - Testing the API in the Application Itself
30:29 - Final Recap
32:00 - Outro
Microsoft Dependency Injection article:
https://docs.microsoft.com/en-us/aspn...
Automapper Documentation:
https://docs.automapper.org/en/stable/
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
Here's my other social media; amazing stuff over there too!
🎮 TWITCH ➼ Twitch: avatarvick
📷 INSTAGRAM ➼ Instagram: heightabovesealevel
😂 TWITTER ➼ Twitter: Vicktor_Oti (VICKTA)
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
🎵 Music provided by:
OKINAWA by Huski Bear SoundCloud: okinawa
Music provided by Free Vibes: https://goo.gl/NkGhTg
Argofox:
VIRO - Believe
VIRO - Believe [Argofox Release]
Marxist Arrow - Twin Musicom
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
#programming #automapper #webapi
Thank you for watching.
Subscribe, and I'll see you in the next video.
3 سال پیش
در تاریخ 1400/03/26 منتشر شده
است.
3,900
بـار بازدید شده