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