ASP.NET Core Web API - 6. GET & Read Methods [PART 1]

  Рет қаралды 65,147

Teddy Smith

Teddy Smith

Күн бұрын

Пікірлер: 71
@swi7h
@swi7h Жыл бұрын
Thank you so much for making tutorials that are both up-to-date and very beginner friendly. You literally do not pass anything without explaining.
@henryli1710
@henryli1710 Жыл бұрын
This series is really up to date and has been super helpful. I see a lot of the same patterns at my job!
@aimfreakify
@aimfreakify 2 жыл бұрын
Teddy, Thank you so much for these tutorials! I hope you keep making great content like this. I love you little explanations and how you guide users through the process and logic.
@ianchin5634
@ianchin5634 2 жыл бұрын
This Series has been fantastic, you're doing amazing work.
@yvesdaniellontsi
@yvesdaniellontsi Жыл бұрын
Loving this tutorial. Thank a lot Teddy. 👏👏
@iseblerobert
@iseblerobert 3 ай бұрын
سلام آقای smith ممنون از آموزش های خوبتون
@franky3557
@franky3557 Жыл бұрын
Really cool series Love it! Please Dont Change
@Javlonbek_Fayzullaev
@Javlonbek_Fayzullaev Жыл бұрын
Great explanation of each part, keep going bro
@_sudipb
@_sudipb Жыл бұрын
Great tutorial Teddy. Thank you for making this video. 👍👍👍
@gabrielferrin
@gabrielferrin 2 жыл бұрын
Loving this tutorial. Thank a lot Teddy.
@donmani-zl1iw
@donmani-zl1iw Жыл бұрын
What a clear explanation 👋👋👋
@kedwad
@kedwad 2 жыл бұрын
Thank you Teddy, Great help !
@TeddySmithDev
@TeddySmithDev 2 жыл бұрын
no prob, Eddie. Thanks for watching.
@brianryan4053
@brianryan4053 Жыл бұрын
Good job! But please write the name of the topic covered on the video. Video 5 - Repository Get, for example
@marypaul9627
@marypaul9627 Жыл бұрын
good teacher at same time funny..i give you a like because you said we do the Auto Mapper is gonna be difficult
@kvelez
@kvelez 6 ай бұрын
19:14 Great man.
@PiryutkoMaxim
@PiryutkoMaxim Жыл бұрын
thank you so much for the lessons!
@Leonidn1972
@Leonidn1972 2 жыл бұрын
You are the best. Thanks a lot.
@bahibrahim101
@bahibrahim101 Жыл бұрын
If you had followed the schema initialization according to Entity Framework's best practices, you could have transformed every single one of those repository methods into concise one-liners using arrow functions, resulting in less code. And more. Mastering your Object-Relational Mapping skills, such as Entity Framework, is what I would recommend for anyone pursuing a career in API development. It can greatly enhance your productivity and enable you to write efficient and maintainable code.
@hafidazer1634
@hafidazer1634 9 ай бұрын
And another like to you and a big thank you... I still don't understand why the Dto is used for 😅 well on to the next one
@عزالدينبنعبدالرحمن
@عزالدينبنعبدالرحمن 2 жыл бұрын
Very helpful, thanks
@Yourixf
@Yourixf Жыл бұрын
Loving the vids!
@matheusantos18
@matheusantos18 11 ай бұрын
Thanks a lot, This is really helpful, and explainful!
@brianryan4053
@brianryan4053 Жыл бұрын
[ JsonIgnore] - this annotation can be used for attribute to avoid it's serialisation
@at-tf9cc
@at-tf9cc 2 жыл бұрын
You can simplifies context.Pokemons.Where(p => p.Id == id).FirstOrDefault(); into context.Pokemons.FirstOrDefault(p => p.Id == id);
@elmervelazquez3549
@elmervelazquez3549 5 ай бұрын
no
@bahibrahim101
@bahibrahim101 Жыл бұрын
Good job buddy. Thank you
@purvaingle7301
@purvaingle7301 Жыл бұрын
Great series!
@TeddySmithDev
@TeddySmithDev Жыл бұрын
thank you for the time
@nyviel6523
@nyviel6523 Ай бұрын
When getting pokemon by id why do you need to check if it exists beforehand, wouldn't the pokemon value be null if it doesn't exist and you can just check that without having to make two database queries?
@jonathanhexner
@jonathanhexner Жыл бұрын
The video is pretty good, clearly the author invested a lot of effort... but a lot the concepts just aren't explained thoroughly enough
@TeddySmithDev
@TeddySmithDev Жыл бұрын
This is fair criticism
@kirillzlobin7135
@kirillzlobin7135 9 ай бұрын
Awesome tutorials. But at 7:40 - Why it is underlined like something is wrong and you are just keep explaining like it is expected to be like this :)
@khalidracabov5347
@khalidracabov5347 Жыл бұрын
I died at 25:10 lool. Amazing tutorials
@kirillzlobin7135
@kirillzlobin7135 9 ай бұрын
32:40 Can we use our custom Mappers. We will not need to install any dependencies and it is not that difficult to implement. Did not see the advantages of automapper
@zilongli4941
@zilongli4941 Жыл бұрын
I have a question at 11:00 the function GetPokemonRating() in /Repository folder is calculating final review on a given pokemon. But as my understanding, the calculation should be in the controller. Is this right?
@hell-boy297
@hell-boy297 11 ай бұрын
The best approach would be doing the calculation in a service, the repository should only hold database logic, and the controller should only get the response from the service and relay it to the client, all business logic should be done in the service layer
@zilongli4941
@zilongli4941 11 ай бұрын
@@hell-boy297 thanks for sharing the knowledge
@MohakTalreja-ys9du
@MohakTalreja-ys9du Жыл бұрын
great tutorial :)
@taqikhan5418
@taqikhan5418 Жыл бұрын
Thanks for the video series. We see nowadays unit of work with repository pattern. Is that better?
@solr4cc
@solr4cc Жыл бұрын
Is doing mapping in controller a good idea? Shouldn't it be in repository where the logic is?
@AliakbarAghajani-fv4mo
@AliakbarAghajani-fv4mo 3 ай бұрын
10:35 Where did you generate "Rating"? Mine has error that says you did not generate this
@okidokiyowyow356
@okidokiyowyow356 Жыл бұрын
Great tutorial but why is my swagger so laggy? Like it hangs up everytime I open the accordion
@anselmedambesanwogou6161
@anselmedambesanwogou6161 Жыл бұрын
Thanks you Teddy, please can you update Review model with Rating Entity ?
@RalphWeber-z2x
@RalphWeber-z2x Жыл бұрын
I like y ou comment in the video "Get you hands dirty"
@elberghaswe2761
@elberghaswe2761 10 ай бұрын
Thanks, Teddy, youre saving my life, Please give me a baby!
@henrik3098
@henrik3098 Жыл бұрын
u the man
@cannanaiJr
@cannanaiJr Жыл бұрын
do you have a UnitOfWork video cant find one?
@Parsifal308
@Parsifal308 3 ай бұрын
Wait, when did we add Rating to Review? .-.
@deepakrevidagar4275
@deepakrevidagar4275 2 жыл бұрын
I am not getting the values in the swagger and it is giving null and 0. Can anybody help me out
@manishshrestha4263
@manishshrestha4263 2 жыл бұрын
Thanks
@nickben8668
@nickben8668 3 ай бұрын
Why does none of the methods called the database use async and await? Is this on purouse or was it just forgotten?
@TeddySmithDev
@TeddySmithDev 3 ай бұрын
I’m not really sure. Was a long time ago. Think I forgot.
@0zel24
@0zel24 Жыл бұрын
I honestly..Don't understand a thing. It s like a parallel universe .
@Cursix
@Cursix 2 жыл бұрын
good videos
@adamclarke774
@adamclarke774 2 жыл бұрын
Anyone know why GetPokemon is 'int pokeId' and not 'int Id' like it is in the interface & repository?
@leonardolelli3087
@leonardolelli3087 2 жыл бұрын
There is not a particular reason, you could also have written "foo" and nothing would have changed. It is simply a placeholder which indicates that there is a variable in the endpoint path that represents the id and that variable is then passed as a method parameter
@huynguyenluonggia6393
@huynguyenluonggia6393 Жыл бұрын
hi everyone, I have learned about repository patterns that in a repository you only use one model but in PokemonRepository, Teddy used the Review Model. Can you explain to me?
@TeddySmithDev
@TeddySmithDev Жыл бұрын
Technically you can only use a single model for a repository to “make”, but you can easily bring in multiple repository to “use”.
@huynguyenluonggia6393
@huynguyenluonggia6393 Жыл бұрын
@@TeddySmithDev thanks for your explanation, Can I add a folder named "Service"???
@hmtken2213
@hmtken2213 Жыл бұрын
AutoMapper.AutoMapperMappingException: 'Missing type map configuration or unsupported mapping.' Why i got this error when using the API: Get Pokemon By ID T_T. I have carefully followed your code but dont know why
@yassir-eh
@yassir-eh Жыл бұрын
what exactly is pokeId it got me so lost
@taqikhan5418
@taqikhan5418 Жыл бұрын
Is DTOs and ViewModel the same?
@TeddySmithDev
@TeddySmithDev Жыл бұрын
Pretty much. ViewModel = html and DTO = database
@ruderalph97
@ruderalph97 11 ай бұрын
jared leto teaches c#
@alexvasile4095
@alexvasile4095 11 ай бұрын
it's not on the fly man :)) you have already this code on the other screen :))
@TeddySmithDev
@TeddySmithDev 11 ай бұрын
ok dude plz don't tell the teacher
@GrowmieTilman
@GrowmieTilman Жыл бұрын
what is the better way to make a getRequest with an id? .xxxx.Where() or xxxx.SingleOrDefault()?
@yunsivattha
@yunsivattha Жыл бұрын
very good, explaination. do you have telegtram?
ASP.NET Core Web API - 7. GET & Read Methods [PART 2]
40:01
Teddy Smith
Рет қаралды 34 М.
ASP.NET Core Web API - 10. POST & Create Methods [PART 2]
35:32
Teddy Smith
Рет қаралды 31 М.
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 57 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 250 М.
Don't throw exceptions in C#. Do this instead
18:13
Nick Chapsas
Рет қаралды 262 М.
ASP.NET Core Web API - 11. UPDATE & PUT Methods
39:16
Teddy Smith
Рет қаралды 18 М.
Data Context Interaction ASP.NET Core C#
30:36
Raw Coding
Рет қаралды 6 М.
ASP.NET Core Web API - 9. POST & Create Methods [PART 1]
36:39
Teddy Smith
Рет қаралды 24 М.
Is Asp.NET Core Better than Node.js
13:35
Gavin Lon
Рет қаралды 5 М.
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН