Тёмный

Why to use DTO (Data Transfer Objects) 

Study Mash
Подписаться 14 тыс.
Просмотров 33 тыс.
50% 1

At present we are Exposing database entities to the client, but that is not always a good idea. Sometimes you want to change the shape of the data that you send to client. For example, you might want to:
Remove circular references (see previous section).
Hide particular properties that clients are not supposed to view.
Omit some properties in order to reduce payload size.
Flatten object graphs that contain nested objects, to make them more convenient for clients.
Avoid "over-posting" vulnerabilities. (See Model Validation for a discussion of over-posting.)
Decouple your service layer from your database layer.
DTO will help us to resolve all the above issues. In this video we will understand it in details. .
You can support me by donating on
www.buymeacoff...
Thanks
Studymash

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@FisayoOluwayemi
@FisayoOluwayemi 4 года назад
please when is this course going to end ? like when are you going to deploy the back end code to Azure?
@StudyMash
@StudyMash 4 года назад
I think 5 more videos to go before releasing this on azure.
@iancarr3923
@iancarr3923 2 года назад
This is an excellent video - the best I have seen on DTO's so far. Video is also excellent.
@dalilapramenkovic8597
@dalilapramenkovic8597 3 года назад
I just wanted to THANK YOU for this series of tutorials. You have helped me sooo much! You have such a good way of explaining things at easy way. I really appreciate this course and I really appreciate you have posted this for free at YT.
@harisharis-jw8ff
@harisharis-jw8ff Год назад
i have not seen a teacher like u thank u
@StudyMash
@StudyMash Год назад
Thanks buddy
@harisharis-jw8ff
@harisharis-jw8ff Год назад
thanks a lot you are the best teacher
@aviadlampert5956
@aviadlampert5956 Год назад
Thank you for this video, made things more clear for me. I still have a question, where should the controller objects be instantiated? In a class as a field? in other places?
@sajad5644
@sajad5644 3 года назад
i found great tutorials in your channel , tanx sir
@josbexerra8115
@josbexerra8115 2 года назад
Muy bien explicado mister Mash....gracias
@ReyAlexam
@ReyAlexam 3 года назад
great and detailed explanation , thnx
@noobtube5555
@noobtube5555 3 года назад
Keep up the good work
@odoolabs1366
@odoolabs1366 2 года назад
Best portion of WebAPI with repository pattern and Unit of work implementation , I feel you should extract the WebAPI portion of this tutorial and combine it in a single video and upload it , so that if some one search web api with repo pattern and unit of work he can find easily your tutorial .
@satyamverma6029
@satyamverma6029 Месяц назад
Sir actually when i configured my iis server and used DTO the id for bew values are adding from 1014,1015 like this. Kindly help me with this please.
@StudyMash
@StudyMash Месяц назад
You must not be typecasting value to int and that is causing your incremental id to concatenate with older one instead of adding.
@tunaalkan5407
@tunaalkan5407 3 года назад
Hi Sandeep, thanks for the video. Can we copy data annotations (such as [Key] and [Column()] ) of the City model when moving some of its properties to the CityDto? Should CityDto have these annotations? Thanks.
@StudyMash
@StudyMash 3 года назад
Yes, that is absolutely okay to add data annotation on DTO.
@tunaalkan5407
@tunaalkan5407 3 года назад
@@StudyMash Thank you!
@abdchuhan
@abdchuhan 2 года назад
what is the difference between DTO and ViewModel
@raman.thatikunta
@raman.thatikunta 3 года назад
Hey Sandeep, I'm now able to debug WebAPI project. I tried to attach to "Launch Chrome against localhost", but that didn't work. What steps do I need to take to debug front end app? Thanks.
@StudyMash
@StudyMash 3 года назад
Why you are attaching it to Chrome, you need to attach the .exe of your application executing your application as suggested in this video.
@lcantillo84
@lcantillo84 2 года назад
Do you have any github repo with this project?
@StudyMash
@StudyMash 2 года назад
github.com/webtrainer-in/HSPA
Далее
Using Automapper in C#
8:19
Просмотров 29 тыс.
Using Unit of Work Pattern
13:43
Просмотров 35 тыс.
.NET 6 🚀 AutoMapper & Data Transfer Objects (DTOs)
15:48
How To Use DTOs In .NET REST APIs
14:18
Просмотров 18 тыс.
What is a DTO? Data Transfer Object
8:34
Просмотров 24 тыс.
How to implement AutoMapper in Asp.Net Core
22:29
Просмотров 10 тыс.
Why use DTOs (Data Transfer Objects)?
7:23
Просмотров 73 тыс.
Using Repository Pattern
14:10
Просмотров 11 тыс.
How to manage user secrets in dot net core
17:56
Просмотров 12 тыс.