Это видео недоступно.
Сожалеем об этом.

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

Комментарии • 70

  • @swi7h
    @swi7h 11 месяцев назад +2

    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.

  • @iseblerobert
    @iseblerobert 4 дня назад

    سلام آقای smith
    ممنون از آموزش های خوبتون

  • @aimfreakify
    @aimfreakify Год назад +12

    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.

  • @henryli1710
    @henryli1710 11 месяцев назад +6

    This series is really up to date and has been super helpful. I see a lot of the same patterns at my job!

  • @ianchin5634
    @ianchin5634 2 года назад +6

    This Series has been fantastic, you're doing amazing work.

  • @yvesdaniellontsi
    @yvesdaniellontsi Год назад +6

    Loving this tutorial. Thank a lot Teddy. 👏👏

  • @franky3557
    @franky3557 Год назад +4

    Really cool series Love it!
    Please Dont Change

  • @_sudipb
    @_sudipb Год назад +2

    Great tutorial Teddy. Thank you for making this video. 👍👍👍

  • @Javlonbek_Fayzullaev
    @Javlonbek_Fayzullaev Год назад +2

    Great explanation of each part, keep going bro

  • @gabrielferrin
    @gabrielferrin 2 года назад +2

    Loving this tutorial. Thank a lot Teddy.

  • @donmani-zl1iw
    @donmani-zl1iw Год назад +1

    What a clear explanation 👋👋👋

  • @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

  • @Leonidn1972
    @Leonidn1972 2 года назад +1

    You are the best. Thanks a lot.

  • @PiryutkoMaxim
    @PiryutkoMaxim Год назад +1

    thank you so much for the lessons!

  • @kedwad
    @kedwad 2 года назад +1

    Thank you Teddy, Great help !

    • @TeddySmithDev
      @TeddySmithDev  2 года назад

      no prob, Eddie. Thanks for watching.

  • @hafidazer1634
    @hafidazer1634 6 месяцев назад

    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

  • @brianryan4053
    @brianryan4053 Год назад +3

    Good job! But please write the name of the topic covered on the video. Video 5 - Repository Get, for example

  • @kvelez
    @kvelez 3 месяца назад

    19:14
    Great man.

  • @user-ir2lm7ye1x
    @user-ir2lm7ye1x Год назад +1

    Very helpful, thanks

  • @matheusantos18
    @matheusantos18 8 месяцев назад

    Thanks a lot, This is really helpful, and explainful!

  • @zilongli4941
    @zilongli4941 Год назад +2

    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 8 месяцев назад +4

      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 8 месяцев назад +1

      @@hell-boy297 thanks for sharing the knowledge

  • @yourixf9698
    @yourixf9698 11 месяцев назад

    Loving the vids!

  • @brianryan4053
    @brianryan4053 Год назад +1

    [ JsonIgnore] - this annotation can be used for attribute to avoid it's serialisation

  • @bahibrahim101
    @bahibrahim101 Год назад

    Good job buddy. Thank you

  • @AliakbarAghajani-fv4mo
    @AliakbarAghajani-fv4mo 2 дня назад

    10:35
    Where did you generate "Rating"?
    Mine has error that says you did not generate this

  • @at-tf9cc
    @at-tf9cc 2 года назад +4

    You can simplifies
    context.Pokemons.Where(p => p.Id == id).FirstOrDefault();
    into
    context.Pokemons.FirstOrDefault(p => p.Id == id);

  • @khalidracabov5347
    @khalidracabov5347 Год назад

    I died at 25:10 lool. Amazing tutorials

  • @bahibrahim101
    @bahibrahim101 Год назад +2

    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.

  • @kirillzlobin7135
    @kirillzlobin7135 6 месяцев назад

    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 :)

  • @kirillzlobin7135
    @kirillzlobin7135 6 месяцев назад

    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

  • @purvaingle7301
    @purvaingle7301 9 месяцев назад

    Great series!

  • @taqikhan5418
    @taqikhan5418 Год назад

    Thanks for the video series. We see nowadays unit of work with repository pattern. Is that better?

  • @elberghaswe2761
    @elberghaswe2761 6 месяцев назад +1

    Thanks, Teddy, youre saving my life, Please give me a baby!

  • @anselmedambesanwogou6161
    @anselmedambesanwogou6161 11 месяцев назад

    Thanks you Teddy, please can you update Review model with Rating Entity ?

  • @okidokiyowyow356
    @okidokiyowyow356 Год назад

    Great tutorial but why is my swagger so laggy? Like it hangs up everytime I open the accordion

  • @MohakTalreja-ys9du
    @MohakTalreja-ys9du 11 месяцев назад

    great tutorial :)

  • @solr4cc
    @solr4cc Год назад

    Is doing mapping in controller a good idea? Shouldn't it be in repository where the logic is?

  • @nickben8668
    @nickben8668 16 дней назад

    Why does none of the methods called the database use async and await? Is this on purouse or was it just forgotten?

    • @TeddySmithDev
      @TeddySmithDev  15 дней назад +1

      I’m not really sure. Was a long time ago. Think I forgot.

  • @user-wf8sx3bo8m
    @user-wf8sx3bo8m Год назад

    I like y ou comment in the video "Get you hands dirty"

  • @henrik3098
    @henrik3098 Год назад

    u the man

  • @deepakrevidagar4275
    @deepakrevidagar4275 Год назад

    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

  • @jonathanhexner
    @jonathanhexner 9 месяцев назад

    The video is pretty good, clearly the author invested a lot of effort... but a lot the concepts just aren't explained thoroughly enough

  • @adamclarke774
    @adamclarke774 2 года назад

    Anyone know why GetPokemon is 'int pokeId' and not 'int Id' like it is in the interface & repository?

    • @leonardolelli3087
      @leonardolelli3087 2 года назад +1

      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

  • @Cursix
    @Cursix Год назад

    good videos

  • @hmtken2213
    @hmtken2213 11 месяцев назад

    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

  • @huynguyenluonggia6393
    @huynguyenluonggia6393 10 месяцев назад

    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  10 месяцев назад

      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 10 месяцев назад

      @@TeddySmithDev thanks for your explanation, Can I add a folder named "Service"???

  • @Parsifal308
    @Parsifal308 21 день назад

    Wait, when did we add Rating to Review? .-.

  • @LaughOfLegend
    @LaughOfLegend Год назад

    do you have a UnitOfWork video cant find one?

  • @travelobsession10
    @travelobsession10 Год назад +3

    I honestly..Don't understand a thing. It s like a parallel universe .

  • @ruderalph97
    @ruderalph97 7 месяцев назад

    jared leto teaches c#

  • @yassir3841
    @yassir3841 Год назад

    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

  • @alexvasile4095
    @alexvasile4095 8 месяцев назад

    it's not on the fly man :)) you have already this code on the
    other screen :))

    • @TeddySmithDev
      @TeddySmithDev  8 месяцев назад

      ok dude plz don't tell the teacher

  • @tilmandr7415
    @tilmandr7415 8 месяцев назад

    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?