ASP.NET Core Web API - 6. GET & Read Methods [PART 1]
Тәжірибелік нұсқаулар және стиль
ASP.NET Core Web API - 6. GET Methods (Part 1)
UML Diagram: drive.google.com/file/d/1EbYY...
Github Repo For This Project: github.com/teddysmithdev/poke...
Twitter: / teddysmithdev
Github: github.com/teddysmithdev
Linkedin: / teddy-smith-015ba61a3
Пікірлер: 69
This series is really up to date and has been super helpful. I see a lot of the same patterns at my job!
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.
This Series has been fantastic, you're doing amazing work.
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.
Loving this tutorial. Thank a lot Teddy. 👏👏
Great tutorial Teddy. Thank you for making this video. 👍👍👍
Loving this tutorial. Thank a lot Teddy.
Really cool series Love it! Please Dont Change
Great explanation of each part, keep going bro
thank you so much for the lessons!
Loving the vids!
Thank you Teddy, Great help !
@TeddySmithDev
2 жыл бұрын
no prob, Eddie. Thanks for watching.
What a clear explanation 👋👋👋
Thanks a lot, This is really helpful, and explainful!
You are the best. Thanks a lot.
Very helpful, thanks
good teacher at same time funny..i give you a like because you said we do the Auto Mapper is gonna be difficult
Good job buddy. Thank you
Another amazing video!
Good job! But please write the name of the topic covered on the video. Video 5 - Repository Get, for example
great tutorial :)
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
Great series!
@TeddySmithDev
9 ай бұрын
thank you for the time
Thanks for the video series. We see nowadays unit of work with repository pattern. Is that better?
19:14 Great man.
Is doing mapping in controller a good idea? Shouldn't it be in repository where the logic is?
Thanks
I died at 25:10 lool. Amazing tutorials
u the man
good videos
[ JsonIgnore] - this annotation can be used for attribute to avoid it's serialisation
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
7 ай бұрын
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
7 ай бұрын
@@hell-boy297 thanks for sharing the knowledge
Great tutorial but why is my swagger so laggy? Like it hangs up everytime I open the accordion
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.
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
Thanks you Teddy, please can you update Review model with Rating Entity ?
I am not getting the values in the swagger and it is giving null and 0. Can anybody help me out
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 :)
do you have a UnitOfWork video cant find one?
Why does none of the methods called the database use async and await? Is this on purouse or was it just forgotten?
@TeddySmithDev
Күн бұрын
I’m not really sure. Was a long time ago. Think I forgot.
Anyone know why GetPokemon is 'int pokeId' and not 'int Id' like it is in the interface & repository?
@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
Thanks, Teddy, youre saving my life, Please give me a baby!
I like y ou comment in the video "Get you hands dirty"
You can simplifies context.Pokemons.Where(p => p.Id == id).FirstOrDefault(); into context.Pokemons.FirstOrDefault(p => p.Id == id);
@elmervelazquez3549
2 ай бұрын
no
Wait, when did we add Rating to Review? .-.
what exactly is pokeId it got me so lost
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
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
9 ай бұрын
Technically you can only use a single model for a repository to “make”, but you can easily bring in multiple repository to “use”.
@huynguyenluonggia6393
9 ай бұрын
@@TeddySmithDev thanks for your explanation, Can I add a folder named "Service"???
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
9 ай бұрын
This is fair criticism
Is DTOs and ViewModel the same?
@TeddySmithDev
Жыл бұрын
Pretty much. ViewModel = html and DTO = database
I honestly..Don't understand a thing. It s like a parallel universe .
jared leto teaches c#
it's not on the fly man :)) you have already this code on the other screen :))
@TeddySmithDev
8 ай бұрын
ok dude plz don't tell the teacher
very good, explaination. do you have telegtram?
what is the better way to make a getRequest with an id? .xxxx.Where() or xxxx.SingleOrDefault()?