Тёмный

ASP.NET Core Web API .NET 8 2024 - 6. POST (Create) 

Teddy Smith
Подписаться 63 тыс.
Просмотров 17 тыс.
50% 1

ASP.NET Core Web API .NET 8 2024 - 6. POST (Create)
Github repo for this project: github.com/teddysmithdev/FinS...
Twitter: / teddysmithdev
Github: github.com/teddysmithdev
Linkedin: / teddy-smith-015ba61a3

Хобби

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

 

5 янв 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@user-xx8jm2rn2s
@user-xx8jm2rn2s Месяц назад
I really like your videos, you're explanations are always clear. Thank you!!
@atheri0_n
@atheri0_n 5 месяцев назад
Bro, you are a LIFESAVER
@kuzaytepecagri
@kuzaytepecagri 20 дней назад
Perfect explanation sir, thank you for your efforts.
@johnconnor9787
@johnconnor9787 5 месяцев назад
Nice course. Great explanation
@Khal_Rheg0
@Khal_Rheg0 2 месяца назад
Thank you!
@dyakosekanyan1672
@dyakosekanyan1672 2 месяца назад
Thank you, my Bro
@aldkdenedik2451
@aldkdenedik2451 5 месяцев назад
Nice course
@Khal_Rheg0
@Khal_Rheg0 2 месяца назад
Why sometimes use DTO and other times Dto? It makes the naming scheme a bit confusing. I got an error because I used ToStockFromCreateDto instead of ToStockFromCreateDTO.
@eatersdaily
@eatersdaily 3 месяца назад
Dude i love the way how to teach, i watched these till episode 6 and i faced with a lot of problems and puzzles , but as i keep going, it is going to be easier! tnx a billion, would you please prepare a tutorial about how to create a website with blazor and dotnet?
@Hamza-ky8us
@Hamza-ky8us 5 месяцев назад
One question. Does the EF handle the generation of the Id value? I didnt see any connection to it. And is it safem that a new Id will not be a used one?
@colin_williams_dev
@colin_williams_dev 2 месяца назад
Yeah I agree, I found this a bit ambiguous. My guess is because the Mapper method: `ToStockFromCreateDTO` returns the Class **Stock**, and Stock has an int `Id` that is not-nullable; Entity must enforce the generation of a unique(?) Id when you new up a Stock (which will be the return stored in the local `var stockModel` returned from the `return new Stock{...} inside the Mapper method `ToStockFromCreateDTO`.
@seyolas3588
@seyolas3588 Месяц назад
i dont think you have knowlodge of the things that happening behind the scenes. The nameof(getStockById) expression does not call the getStockById function; instead, it returns the name of the function as a string. This string is used by the CreatedAtAction method to generate the URL for the newly created resource.
@shafialanower3820
@shafialanower3820 6 месяцев назад
From your experience do you enjoy MVC or ASP.Core more? I’m relatively new didn’t know they stopped updating MVC
@TeddySmithDev
@TeddySmithDev 6 месяцев назад
I would say .NET core API. You don’t have to worry about the front end.
@kvelez
@kvelez 3 месяца назад
Pro.
@wolfgangdiemer2511
@wolfgangdiemer2511 3 месяца назад
Nice video, but it hurts a little, that you didn't change the mapper method name ToStockFromCreateDto😉
@TeddySmithDev
@TeddySmithDev 3 месяца назад
😂
@tod.photowalk
@tod.photowalk 3 месяца назад
Very nice Thank you for the best practice and I have a question please. What is this theme.
@TeddySmithDev
@TeddySmithDev 3 месяца назад
Night Owl + Material Icons
@tod.photowalk
@tod.photowalk 3 месяца назад
@@TeddySmithDev Thank you very much.
@renatyrn
@renatyrn 6 месяцев назад
The great course so far. Why the id of the created stock so different from others? You ain't handle this moment in code.
@mischief9499
@mischief9499 5 месяцев назад
because he must have inserted many rows on the same table and then removed those rows, but the DB will not rollback from the identity numbers it has created, that is why created stock Id is different from others. for example if you insert row1, row2 and row3, the respective identity IDs for them will be 1, 2 and 3. Now if remove all rows and insert one new row, the identity assigned to it will be equal to 4, not 1.
@mischief9499
@mischief9499 4 месяца назад
@@moodycat12 honestly dont know, i only guessed the reasoning behind why the row numbers are so different
Далее
ASP.NET Core Web API .NET 8 2024 - 7. PUT (Update)
9:27
Brutally honest advice for new .NET Web Developers
7:19
▼КОРОЛЬ СОЖРАЛ ВСЕХ 👑🍗
29:48
Просмотров 445 тыс.
React and ASP.NET Core Identity Authentication
32:16
Просмотров 12 тыс.
КАК СТАТЬ JUNIOR .NET DEVELOPER В 2023?
21:58
Просмотров 4,2 тыс.
ASP.NET Core Web API .NET 8 2024 - 9. Async/Await
9:03
Create A Python API in 12 Minutes
12:05
Просмотров 599 тыс.
Background Jobs in ASP.NET Core
18:35
Просмотров 48 тыс.
World’s Largest Jello Pool
1:00
Просмотров 93 млн
🤣🤣🤣🤣🤣🤣🤣
0:13
Просмотров 2,6 млн
Головоломка от дедушки🔥
0:31