IEnumerable, IEnumerator, IQueryable in C# .NET

Поділитися
Вставка
  • Опубліковано 6 лют 2025
  • Q. What is IEnumerable in C#?
    Q. What is the difference between IEnumerable and IEnumerator in C#?
    Q. What is the difference between IEnumerable and IQueryable in C#?
    Why to use IQueryable in sql queries?
    1. Full .NET Interview Course (with PDF Book)
    C# / ASP.NET Core / MVC / API - Top 500 Interview Questions
    www.udemy.com/...
    Don't worry if course not helping you, Udemy has 30 days Free Refund Policy.
    2. Quick Revision Book (PDF format)
    Top 500 .NET Interview Questions - OOPS/ C#/ ASP.Net/ MVC/ SQL /.Net Core /Web API
    imojo.in/inter...
    50% Off - Limited Time Offer Applied on above link.
    Don't worry if book not helping you, I will return 100% of your money with in 7 days of purchase. Just mail me at - happy@interviewhappy.com
    My best wishes are with you.

КОМЕНТАРІ • 31

  • @runawayvon01
    @runawayvon01 Рік тому +2

    This appears as a question from the technical round.
    Thank you so much for this because I got the job offer.

  • @digambarbhandare4485
    @digambarbhandare4485 Рік тому +7

    Good explanation sir. In short IEnumerable featch the data and filtere it rather than IQuerable featch filtered data. That's why it is faster as compare to IEnumerable

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

    Seriously very grateful information in very easiest way .., thanks sir 😊

  • @ratnakarsethi8403
    @ratnakarsethi8403 11 днів тому

    Great 👍. Thanks 🙏

  • @MyLifestyleYaaro
    @MyLifestyleYaaro 10 місяців тому

    You make the video short and to the point.. good for revision...Add one more video if possible regarding best code practices... And best design patterns with situations..

  • @himanshuverma9596
    @himanshuverma9596 Рік тому +2

    Crisp and clear explanation

  • @levkirichuk
    @levkirichuk Рік тому

    Nice video, one point IQueryable executes a "select query" on server-side with all filters that appended to it until database execution.
    That give to use make more flexible code.

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

    Thanks a bunch for this great explanation... really helped me understand

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

    Very well explained

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

    Today I learn one new thing , thanks

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

      I'm glad you found something new in this video!

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

    amazing explaination, thank bro

  • @shwetaranshinge3803
    @shwetaranshinge3803 Рік тому +1

    Very useful explanation..

    • @interviewhappy
      @interviewhappy  Рік тому

      Thanks Shweta and all the best for your career.

  • @nishanthgmk3487
    @nishanthgmk3487 Рік тому +2

    Very well explained, subscribed to your channel because of this great explanation :)

  • @waqasmumtaz6109
    @waqasmumtaz6109 Рік тому

    Wah Sir g

  • @imadabab
    @imadabab Рік тому

    Brilliant. Thanks a lot.

  • @logeshk2811
    @logeshk2811 Рік тому +1

    can you explain about the pipielines in program.cs? What's the flow

    • @interviewhappy
      @interviewhappy  Рік тому

      Hi Logesh, I think I already explained this in .NET core part

  • @mihirkumartripathy9412
    @mihirkumartripathy9412 Рік тому +1

    Hi Sir, I have one doubt.. in which scenario we have to use innumerable rather than iqurable in linq query ?

    • @interviewhappy
      @interviewhappy  Рік тому

      When you have in-memory collections

    • @serg1778
      @serg1778 Рік тому

      ​@@interviewhappyyesterday i was testing IEnumerable and IQueryable and got the same result using inline query with linq Where(),that is each of them generated sql where.But using 2 lines,like : IEnumerable data = context.Users; var filtered = data.Where(...).ToList(); In this case with IEnumerable we don't have sql where.Can you clarify it?

    • @pranavbhat92
      @pranavbhat92 Рік тому

      @@serg1778 If you are using SQL server, then you can check that in SQL Server Profiler. Just check which query is being executed.

  • @SravikaVaka
    @SravikaVaka Рік тому

    Sir.., Can you explain solid principles concept bit brief

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

    Jesus loves you brother