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

  Рет қаралды 12,655

Teddy Smith

Teddy Smith

5 ай бұрын

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

Пікірлер: 22
@johnconnor9787
@johnconnor9787 4 ай бұрын
Nice course. Great explanation
@atheri0_n
@atheri0_n 4 ай бұрын
Bro, you are a LIFESAVER
@Khal_Rheg0
@Khal_Rheg0 Ай бұрын
Thank you!
@dyakosekanyan1672
@dyakosekanyan1672 Ай бұрын
Thank you, my Bro
@aldkdenedik2451
@aldkdenedik2451 4 ай бұрын
Nice course
@eatersdaily
@eatersdaily 2 ай бұрын
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?
@Khal_Rheg0
@Khal_Rheg0 Ай бұрын
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.
@Hamza-ky8us
@Hamza-ky8us 4 ай бұрын
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 Ай бұрын
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`.
@shafialanower3820
@shafialanower3820 5 ай бұрын
From your experience do you enjoy MVC or ASP.Core more? I’m relatively new didn’t know they stopped updating MVC
@TeddySmithDev
@TeddySmithDev 5 ай бұрын
I would say .NET core API. You don’t have to worry about the front end.
@tod.photowalk
@tod.photowalk 2 ай бұрын
Very nice Thank you for the best practice and I have a question please. What is this theme.
@TeddySmithDev
@TeddySmithDev 2 ай бұрын
Night Owl + Material Icons
@tod.photowalk
@tod.photowalk 2 ай бұрын
@@TeddySmithDev Thank you very much.
@seyolas3588
@seyolas3588 11 күн бұрын
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.
@kvelez
@kvelez 2 ай бұрын
Pro.
@wolfgangdiemer2511
@wolfgangdiemer2511 2 ай бұрын
Nice video, but it hurts a little, that you didn't change the mapper method name ToStockFromCreateDto😉
@TeddySmithDev
@TeddySmithDev 2 ай бұрын
😂
@renatyrn
@renatyrn 5 ай бұрын
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 4 ай бұрын
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 3 ай бұрын
@@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
Teddy Smith
Рет қаралды 9 М.
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 49 М.
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 8 МЛН
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 62 МЛН
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 2,8 МЛН
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 66 М.
Golang is OG?
5:16
Martin Baun
Рет қаралды 6 М.
"Stop Using Automapper in .NET!" - Code Cop #001
9:57
Nick Chapsas
Рет қаралды 108 М.
ASP.NET Core Web API .NET 8 2024 - 5. DTOs
8:27
Teddy Smith
Рет қаралды 16 М.
ASP.NET Core Web API .NET 8 2024 - 9. Async/Await
9:03
Teddy Smith
Рет қаралды 10 М.
Updating my personal website from .NET 6 to .NET 8 LTS in 15 min
17:13
Scott Hanselman
Рет қаралды 13 М.
How I'd Learn Front End Web Development (If I Could Start Over)
8:39
ASP.NET Core Web API .NET 8 2024 -1. Create Project + Install
13:31
Quando ACELERA eu faço MAIS GRANA 💰
0:16
Hermann Greb
Рет қаралды 7 МЛН
万万没有想到这事小路飞的便便#海贼王  #路飞
0:14
路飞与唐舞桐
Рет қаралды 10 МЛН
Этот Малыш Маленький Гений 👏
0:25
Глеб Рандалайнен
Рет қаралды 10 МЛН
Surely you don’t know this ☕️ #camping #survival #bushcraft #outdoors
0:17
Ăn Vặt Tuổi Thơ 2024
Рет қаралды 36 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
0:27
Гараж 54
Рет қаралды 7 МЛН