ASP.NET Core Web API .NET 8 2024 - 5. DTOs

Поділитися
Вставка
  • Опубліковано 4 січ 2024
  • ASP.NET Core Web API .NET 8 2024 - 5. DTOs
    Github repo for this project: github.com/teddysmithdev/FinS...
    Twitter: / teddysmithdev
    Github: github.com/teddysmithdev
    Linkedin: / teddy-smith-015ba61a3
  • Навчання та стиль

КОМЕНТАРІ • 26

  • @mischief9499
    @mischief9499 4 місяці тому +18

    I think it would be better to place .Select() mapping method before the .ToList(), When we call .ToList() first, data of all the columns are retrieved from the database, which is kind of redundant because some of them are eventually going to be ignored in the DTO mapping method, if I apply .Select() mapping first, it first modifies the information in the IQueryable object it self and then .ToList() executes query on those columns only which are required in the mapping defined in the DTO Mapper method

  • @MohammadMahdiNiknam
    @MohammadMahdiNiknam 5 місяців тому +3

    I really like the way you explain in detail and in full😁😁😁As a junior, I didn't know many of the things you explained and I just repeated them automatically.
    Thank you for this great course👌👌👌.

  • @zeroj7492
    @zeroj7492 4 місяці тому

    ThanK you so much for this series brother.

  • @tomasbalducchi
    @tomasbalducchi 3 місяці тому

    Hey Teddy, really enjoying this series. I'm a frontend dev starting to cover more ground and this content is just awesome. Thanks a lot.

  • @manooj8502
    @manooj8502 5 місяців тому

    lots of love from nepal your way of teaching is best ever

  • @maheshtamang6158
    @maheshtamang6158 4 місяці тому

    this series is gold! thank you so much for such gem!

  • @abhishekinvisible
    @abhishekinvisible Місяць тому

    Thanks for detailed explanation

  • @cant_sleeeep
    @cant_sleeeep 6 місяців тому +2

    true chad keep them coming man

  • @babygrandadplays
    @babygrandadplays Місяць тому

    Your course is amazing. Its easy to follow and the way you explain things makes understanding the concepts very easy and graspable :) 🤝

  • @Khal_Rheg0
    @Khal_Rheg0 Місяць тому

    Thank you!

  • @tarekabiramia913
    @tarekabiramia913 5 місяців тому

    keep it up man great content

  • @kvelez
    @kvelez 2 місяці тому

    Excellent.

  • @user-qy2qz4ux2n
    @user-qy2qz4ux2n 5 місяців тому +1

    💯💯💯💯💯💯💯💯💯

  • @Shalaby2002
    @Shalaby2002 4 місяці тому

    My Automapper unexpectedly crashed, prompting me to resort to manual mapping within my controller. However, the concept of employing extension methods is intriguing. Though I'm a novice, it has captivated me

  • @Hamza-ky8us
    @Hamza-ky8us 4 місяці тому

    Thank you so much. I'm new and I'm learning alot from you videos. I have one question. You said you are doing the mapping manually. How would it look like if it is automatically done? Is there a reason why you prefer it doing it manually?
    Thanks

  • @Okolieazubuike
    @Okolieazubuike Місяць тому

    Hi, Teddy.
    Thanks for the manual mapping. My question supposing we have more dtos do i have to configure all like this?

  • @Choosebrand
    @Choosebrand 3 місяці тому +1

    Dude, incredible work u made here. going through the whole tutorial. Awesome !
    One question, any tips on how to deploy a full-stack app like this? There is any way to do it for free somewhere, for portfolio purposes, or only via Azure, etc...
    Thanks a million for the effort you put on the videos.

    • @TeddySmithDev
      @TeddySmithDev  3 місяці тому +2

      There's many ways but the way I would do it:
      For backend: take advantage of some type of azure promotion so you can get first year free.
      For frontend: deploy to netlify and set all api services so they point to azure api.
      You could probably put the whole entire thing on one server for extra speed but I don't think it would be worth it in this case.

    • @Choosebrand
      @Choosebrand 3 місяці тому

      @@TeddySmithDev HERO!
      Thanks for the super fast reply.

  • @ghaithchikhalchabab5676
    @ghaithchikhalchabab5676 4 місяці тому

    What are the Mappers here and the DTO? Should we use both?

  • @afeesolorunfemi4524
    @afeesolorunfemi4524 15 днів тому

    What is the different in using the DTOs and ViewModels, because i can also use VM serve the same purpose, please i need your explanation. thank you

  • @yanko694
    @yanko694 5 місяців тому

    whats that drawing tool?

  • @orizonapp9279
    @orizonapp9279 2 місяці тому

    @mischief9499 i added the .Select() mapping before the .ToList(), but still getting the same.

    • @user-xy7mc4du4i
      @user-xy7mc4du4i 25 днів тому

      I think you need to save the StockController file to see hot reloaded results. I didn`t save it and got Comments in the response.