AddSingleton(), AddScoped() & AddTransient() in a .NET 7 Web API 🚀

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

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

  • @NIKOLAOSGYPAS
    @NIKOLAOSGYPAS Год назад +9

    Crystal clear explanation. thank you Patrick

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

      Glad I could help. Thrilled to have you in the .NET Web Academy! 😁

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

    best explanation on youtube for sure ! thanks Patrick

  • @vintagewander
    @vintagewander Год назад +7

    wow exactly what I needed to learn, thanks Patrick

  • @Roman-uy7qp
    @Roman-uy7qp Год назад +2

    You are such a legend.

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

    Thank you my friend, it's a great example of DI life time!

  • @joaogabrielv.m328
    @joaogabrielv.m328 Год назад +2

    Hell yeah! This video really helped, Patrick. Keep up, man

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

    Really well explained. Please keep uploads this kind of videos. Really helpful. Thank you.

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

      Thank you for your kind feedback!

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

    excellent video! thank you so much! I defintely got the point since one year trying to understand !!!
    just a tiny precision: singleton can be useful in some use cases like logger :)

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

    thank you , very simple video

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

    Nice informative video. Series is last of us.

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

    Not a fan of zombie stuff, but I really appreciate the fun example.

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

    thanks

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

    Sound like these really need to be thought about in regards to the context of the API, database updates and whether or not EF tracking has been turned off (which in an API it probably should be).

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

    Thanks for the video. please record a video about API and cloud solutions. maybe CRUD

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

      You mean deploying your Web API to Azure, for instance?

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

      @@PatrickGod
      Yes Web API to Azure, it would be cool to see from you, you explain and show coolly.
      If you want to do with AWS it will also not be bad

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

      @@PatrickGod That would be awesome :) Setting up different deploys, database as a separate microservice or whatever you think is more importand

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

      @@PatrickGod It would be cool to see Azure and MongoDB or some other database

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

    thanks a lot

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

    Ich liebe The Last Of Us :-) Gestern die letzte Episode gesehen!
    Was halten Sie von der Spieladaption?

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

      Phänomenal. Sowohl Spiel als auch Serie, wunderbar umgesetzt. 😁

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

    hi patrick, awesome stuff as usual.
    if i have a row of 200,000 in a table, is using Ef Core a good idea? if so, how can i make the fetching process faster.. it takes way too long to fetch. thanks

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

      I hope your found your answer already, if not. What is the purpose of fetching 200,000 in one go?

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

      @@basszoneproduction yes, it was out of curiosity.. and I didn't learn about offset and pagination. Im using that now to fetch data. But In most of my use cases, I found dapper to be faster for fetching data than ef core.

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

      Cool!

  • @CFox.7
    @CFox.7 Год назад +2

    No idea what this is and why it popped up in my recommended but got a feeling Chat GPT will be doing this very soon

    • @Roman-uy7qp
      @Roman-uy7qp Год назад

      ChatGBT sucks. If it can do something in a more skilled manner than you can it means you weren't very skilled anyway.

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

    The Last of Us!!

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

    THE LAST OF US

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

    Thank you, again a very good tutorial. For the donation, can you please post a PayPal address for this, I don't want to give out my credit card details just like that.