ASP.NET Core Web API | 3-Layer Architecture + AutoMapper (Step By Step) [04]

preview_player
Показать описание
In this video, we will divide our solution into 3 projects: DAL, BLL and Web API. We will also use the AutoMapper to map Entities to class Models and vice verca. We will also use Microsoft's class "ActionResult" in our API.

Leave a like and subscribe if this helped!

Any video suggestions? Let me know in the comments.

0:00-1:05 : Recap of previous episode
1:05-1:41 : Introducing the Topics (Multi-Layer Application and AutoMapper)
1:42-4:26 : Adding 2 Different Class library Projects
4:26- 5:06: Explaining Business Logic Layer and Data Access Layer
5:07- 6:24 : Adding the project references
6:24-7:00: Moving the repository folder to the DAL
7:01-9:02 : Installing Entity Framework packages in DAL
9:02-9:33 : Deleting unused packages from Web API
9:33-11:14 : Calling PersonBLL from PersonController APIs
11:15-12:05 : Introducing Model classes vs Entities Idea
12:05-13:28: Calling the DAL functions from BLL
13:28-14:35 : Explaining each layer's function to clear confusion
14:36-15:24 : Fixing errors
15:25-15:38 : Testing the Get Api with the new Project Structure
15:39-16:42 : Creating a PersonModel Class in BLL
16:43-17:11 : Why Use Class Models since we have Entity Classes?
17:12-20:50 : Reason #1 to use Class Models
20:51-21:40 : Reason #2 to use Class Models
21:41-21:58: Introducting the AutoMapper
21:58- 25:04: Dividing the GetPersonByID API function through 3 different layers
25:05-27:13 : Returning ActionResult Type in our Controller APIs
27:13-28:28 : Installing AutoMapper Package
28:28-30:33 : Creating and configuring our PersonMapper
30:34-34:23 : Using our PersonMapper in BLL
34:24-35:19 : Testing the GET APIs that return Class Models
35:19- 38:25 : Dividing The Post API through the different layers + Mapping with AutoMapper
38:26-39:40 : Testing the Post API after the changes
39:41 - 40:29 : Outro
Рекомендации по теме
Комментарии
Автор

thanks alot. so easy to understand. searched everywhere for this. good luck man

PasinduBroomer
Автор

Bless you. You cleared almost all doubts related to my current project which uses the same Architecture

anushagpatel
Автор

Oh man great work. Please keep the channel running . Take Love

juhanhossain
Автор

I like your explanations of why something is needed. Thanks!

siim
Автор

Thank you very much am searching for this around more than a month

sajanpv
Автор

Thank you so much, you have cleared my alot of confusions, best regards from Pakistan

azstech
Автор

Very important video this one. Any aspiring developers needs to take notes. Thanks for explaining

Beni
Автор

Good job sir. I now finally understand the 3 layer structure. And your example is really close to the real world application of the layer. Morepowerand God bless sir

rededu
Автор

A very successful education. A very useful tutorial. Looking forward to more of your videos. I hope you reach a high number of followers in a short time. People like you deserve to succeed. Best wishes. Greetings.

bahadirerdun
Автор

Great explanation. You made everything very clear. Thank you.

todorg.
Автор

Great series. Totally beginner friendly.

RohanKumar-zpwu
Автор

Thank You so much for your Video It really Helpful For me

anoopkumar
Автор

Kindly put like working demo means like creating the project and database
So beginners will understand clearly

ramyasrinivasan
Автор

Can you add Identity framework to this project to manage multiple user for example admin, user, seller, etc?

mdrifatislam
Автор

Thanks, it helpe me a lot.
I have a question, what if we have a relationship (many to many), is there a way to configure automapping between tables and get data?

Marc-sdhy
Автор

How did the connection string is invoked ?

mytrolls
Автор

Thank you.... Here we have to do migration to create table??

chetanadesale
Автор

May i know how to call store procedure in you are project

MaheshMahi-zlpj
Автор

You did not use Dapper ? in this project

delightful
Автор

It seems that this web api can only be tested on Postman, when I run the app, it fails because the interface cannot be displayed on the web browser.