IEnumerable vs IQueryable C# | C# Interview Questions | Csharp Interview Questions and Answers

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 115

  • @questpondvideos
    @questpondvideos  3 ปีที่แล้ว +1

    30 Important C# Interview Questions : th-cam.com/video/BKynEBPqiIM/w-d-xo.html
    Software Architecture Interview Questions : th-cam.com/video/AtTgcbLOqMM/w-d-xo.html
    25+ OOPS Interview Questions : th-cam.com/video/u99wAoBjDvQ/w-d-xo.html
    20+ SQL Server Interview Questions : th-cam.com/video/SEdAF8mSKS4/w-d-xo.html
    10+ Power BI Interview Questions : th-cam.com/video/Cozc9WNBRt4/w-d-xo.html
    20 MSBI Interview Questions : th-cam.com/video/Nw_sHEKnOUE/w-d-xo.html
    SQL Server Joins : th-cam.com/video/KTvYHEntvn8/w-d-xo.html
    SQL Step by Step - th-cam.com/video/uGlfP9o7kmY/w-d-xo.html
    Angular Step by Step Tutorial for Beginners : th-cam.com/video/-9VcW7MBDs8/w-d-xo.html
    25 Angular Interview Questions : th-cam.com/video/-jeoyDJDsSM/w-d-xo.html
    25 Important ASP.NET Interview Questions : th-cam.com/video/pXmMdmJUC0g/w-d-xo.html
    35 Important JavaScript Interview Questions : th-cam.com/video/Zb4dPi7CANU/w-d-xo.html
    20 MySQL Interview Questions : th-cam.com/video/9hfjC-BpY20/w-d-xo.html
    5 MSBI Interview Questions : th-cam.com/video/5E815aXAwYQ/w-d-xo.html
    20 PHP Interview Questions : th-cam.com/video/1bpNSynUrl8/w-d-xo.html

  • @AhmadElkhouly
    @AhmadElkhouly 6 หลายเดือนก่อน

    Thank you. This 7-minute video indirectly answered a question I've been trying to find an answer to for a while. Subscribed. 🎉

  • @kopilkaiser8991
    @kopilkaiser8991 ปีที่แล้ว

    In my junior dev job, they were using different places interechangeably these two collection types: IEnumerable & IQueryable. And I was very confused with the requirement of doing such implementation. You have clarified my doubts and questions. And it makes a big difference of using the two different types of collections when we are mutating the various different objects. Thank you so much for taking the effort and time to deliver such essential information.

  • @zebcode
    @zebcode 4 ปีที่แล้ว +29

    Straight to the point, you answered the question and visually showed the effects of using IQueryable using the profiler. Very well done!

  • @zaharivaklinov
    @zaharivaklinov 2 ปีที่แล้ว

    Great video with the answer on the question! I failed an interview the other day due to some failed answer attempts, one of which was about the difference between IEnumerable and IQueryable...

  • @suvmatrix
    @suvmatrix 2 ปีที่แล้ว

    Awesome way of showing the difference. That's what I like in your content

  • @cristianfarcas3272
    @cristianfarcas3272 2 ปีที่แล้ว

    I've been looking for this kind of video for a couple of hours already. great job!

  • @twitchdude55
    @twitchdude55 2 ปีที่แล้ว

    very clear explained, nailed it

  • @rutujamokashi6389
    @rutujamokashi6389 3 ปีที่แล้ว

    It's really very helpful for me...

  • @sumanshah5750
    @sumanshah5750 4 วันที่ผ่านมา

    Understand sir

  • @saktiprasadswain6546
    @saktiprasadswain6546 3 ปีที่แล้ว

    Thanks

  • @sanketshahane5778
    @sanketshahane5778 2 ปีที่แล้ว

    Very Nicely Explained it sir,
    But I have one small query regarding IQueryable, may be it is silly question (don't mind)..!!
    If I am declaring IQueryable variable and initializing (getting data from DB) Apply where conditions and filter the data, and in next line I am getting a count() of that variable then there will be 2 DB call (1st for getting data with filtered and 2nd for getting count(*)) or only 1st DB call..??
    Ex:
    IQueryable results = db.GetTable().Where(Expression);
    var recordList = results.ToList();
    int totalRecords = results.Count();
    Please help..!
    Thank you in advance..!!

  • @suchismitasenapati1625
    @suchismitasenapati1625 3 ปีที่แล้ว

    Nicely explained. Thank you 😊

  • @sridevi2011
    @sridevi2011 2 ปีที่แล้ว

    Perfect

  • @manoranjansahoo9721
    @manoranjansahoo9721 4 ปีที่แล้ว

    Thanks for making clear understanding, Please make video on visual studio 2019 tools, its features, tips & hidden tricks etc.

  • @avinash23525
    @avinash23525 5 ปีที่แล้ว

    Nice. well explained !. can't we filter while loading Employee table or using linq ?

  • @РусланЛи-б3х
    @РусланЛи-б3х 3 ปีที่แล้ว

    Thank you so much

  • @DeepakSaini-pv3rq
    @DeepakSaini-pv3rq 4 ปีที่แล้ว

    awesome sir

  • @nammozhi819
    @nammozhi819 2 ปีที่แล้ว

    I have interview tomorrow..hope this one helps

    • @questpondvideos
      @questpondvideos  2 ปีที่แล้ว

      Just prepare this video you should be able to answer 15% of the interview questions th-cam.com/video/BKynEBPqiIM/w-d-xo.html

  • @createyourworld2530
    @createyourworld2530 5 ปีที่แล้ว

    tnx, man! It was really good video and good explaining different between IEnumerable and IQueryable!!! Like!

  • @sethnejame6786
    @sethnejame6786 4 ปีที่แล้ว

    Good stuff.

  • @sergeymigel4680
    @sergeymigel4680 3 ปีที่แล้ว

    sorry, bro, but it is very high level description

  • @ladanseyedzadeh1090
    @ladanseyedzadeh1090 2 ปีที่แล้ว +11

    You are the best instructor in the field of programming based on my experience, I wish I had a professor like you when I studied CE at University. I can not help but admire your natural talent to simplify complex concepts.

  • @mrmanualways
    @mrmanualways 5 ปีที่แล้ว +9

    awesome bro.. can't say thank you enough to all youtube teachers .. Happy 2019

  • @SweepAndZone
    @SweepAndZone 6 หลายเดือนก่อน

    ❤ 😮 wow thats awesome! This can be a huge performance hindrance

  • @gulbadanofficial3135
    @gulbadanofficial3135 2 หลายเดือนก่อน

    Thank You Sir It helps a lot 😍.. Good information

  • @CezarLisboa1990
    @CezarLisboa1990 5 ปีที่แล้ว +3

    Perfect! Great video! Very useful for deciding to use both interfaces. Thank you!

  • @bernardfitzgerald5697
    @bernardfitzgerald5697 4 ปีที่แล้ว +3

    Might be worth noting that the delay in querying the database could lead to adverse results if there are table changes between creating the interface and applying the filter. Good video though

    • @OT-tn7ci
      @OT-tn7ci 2 ปีที่แล้ว +1

      if there are table changes, and if IQueryable doesn't work, most likely even IEnumerable won't work.

  • @SmileIfYouhaveTeeth
    @SmileIfYouhaveTeeth 7 หลายเดือนก่อน

    Can i get referral for .net developer fresher opening!??

  • @RahulSharma-ps1rf
    @RahulSharma-ps1rf 4 ปีที่แล้ว +1

    Hello Sir, I have one question. We have 2 options to get data from DB using EF ie. List data = _context.tableName.AsQueryable().Where(x => x.id == 33144).ToList(); and List data = _context.TableName.Where(x => x.id == 33144).ToList();. Both have same impact when we see in SQL profiler then why to use IQueryable?

    • @MohammedDawoodAnsari
      @MohammedDawoodAnsari 2 ปีที่แล้ว

      Another use case would be to add filters on run time, for example in your query if there is one more parameter lets say as name, so if name filter needs to be applied based on condition, then also you can use IQuerayable

  • @MrTanveer416
    @MrTanveer416 5 ปีที่แล้ว +3

    Excellent explanation within a very short time.

  • @ajaypanse4489
    @ajaypanse4489 11 หลายเดือนก่อน

    Hi Shiv,
    Your videos are very good to understand the concepts.
    In one of the interviews, along with this difference I was asked which one is having thread safety feature or thread safe.
    I couldn't answer it properly. I tried to search on net but didn't get proper answer. Can you help me to get this answer so it will help me to clear that concept.
    Thanks

  • @Iamnontechnical
    @Iamnontechnical 5 ปีที่แล้ว +1

    good example, suggestion work more on speech it will become great

  • @heezukaa8803
    @heezukaa8803 2 หลายเดือนก่อน

    Your amazing thank you.

  • @maha2818
    @maha2818 2 ปีที่แล้ว

    Awesome sir. You are great. Nicely explained the topic and very easy to understand the difference. Please keep your awesome teaching.
    Thanks

  • @BrutusPalmeira
    @BrutusPalmeira 5 ปีที่แล้ว +1

    Great video as always. Of course an example of in memory would have been nice too. If we have an in memory list and we use iqueryable instead of ienumerable, do we get any drawbacks?

  • @SimplefundBaba
    @SimplefundBaba 2 ปีที่แล้ว

    Great video, i was always confused to these concept. but today i am fully clear on this concept.

  • @thishandharmakeerthi5327
    @thishandharmakeerthi5327 8 หลายเดือนก่อน

    This channel is one of the most underrated channels in youtube.

  • @attilaguba856
    @attilaguba856 2 ปีที่แล้ว

    Super great explanation! Clearly understandable! Thanks!!! Keep up your good teaching

  • @rhoonah5849
    @rhoonah5849 3 ปีที่แล้ว

    Excellent video. Very simply explanation of the differences between IQueryable and IEnumerable with EF.
    Quick question though... if you applied a ToList() on the end of where you called dal.Employees so it was dal.Employees.ToList(), would all calls now be in memory? So would you only have gone to the DB once to load the Employees table and then all filters are just applied to the in memory list? Thank you.

  • @abhilabdas9870
    @abhilabdas9870 2 ปีที่แล้ว

    Thank you so much for this explanation! God bless

  • @AmmarTheTrainer
    @AmmarTheTrainer 2 ปีที่แล้ว

    Awesome... what an explanation.. Thank-you sir

  • @artak9439
    @artak9439 2 ปีที่แล้ว

    If I remember IEnumerable uses expression tree and IQueriable uses tree traversial.

  • @mrohailiqbal
    @mrohailiqbal 3 ปีที่แล้ว

    Sir you are great. Very useful video. Thanks a lot!!

  • @noellangcauon7133
    @noellangcauon7133 4 ปีที่แล้ว

    Thanks bro! keep uploading useful information like this!

  • @moubienkayali6718
    @moubienkayali6718 ปีที่แล้ว

    thanks a lot

  • @vkeychaudhari
    @vkeychaudhari 2 ปีที่แล้ว

    Best video

  • @RaterisimoCBA
    @RaterisimoCBA 2 ปีที่แล้ว

    Good video ! Simple and concrete answer.

  • @inAshsHead
    @inAshsHead 11 หลายเดือนก่อน

    Thanks

  • @mytrolls5866
    @mytrolls5866 2 ปีที่แล้ว

    Excellent

  • @DavidZobristGames
    @DavidZobristGames ปีที่แล้ว

    Nice

  • @MSMOTOVLOGS
    @MSMOTOVLOGS 3 ปีที่แล้ว

    Nice video. To the point. No BS

  • @AbhishekPoojara
    @AbhishekPoojara 2 ปีที่แล้ว

    Great One... Superb Exlpaination.

  • @rajasekharjangam4999
    @rajasekharjangam4999 3 ปีที่แล้ว

    Very nice explanation bro, thank you

  • @rezkhan3366
    @rezkhan3366 ปีที่แล้ว

    Great explanation. Thanks!

  • @nandishdhadd5834
    @nandishdhadd5834 5 ปีที่แล้ว

    In simple words, using Iqueryable will defer query execution..

    • @questpondvideos
      @questpondvideos  5 ปีที่แล้ว +1

      yes sir , but until we do not see it , simple words are not simple :-) happy learning.

  • @prasadmadushan
    @prasadmadushan 4 ปีที่แล้ว

    Thank you for your great explanation.

  • @shreekantnoida
    @shreekantnoida 4 ปีที่แล้ว

    I really see awesome practical example. thanks a lot sir.

  • @rahulmishra5438
    @rahulmishra5438 4 ปีที่แล้ว

    At the starting of the video you have shown us the playlist where we'll get those videos??

  • @imadabab
    @imadabab 4 ปีที่แล้ว

    Excellent tutorial. Thanks a lot.

  • @AjaySaini-107
    @AjaySaini-107 4 ปีที่แล้ว

    Really cleared explanation in simple words.

  • @govindwaghmode6379
    @govindwaghmode6379 4 ปีที่แล้ว

    Great explanation sir. Thank you so much.

  • @perumalchinnasamy1735
    @perumalchinnasamy1735 5 ปีที่แล้ว

    Very nice explanation, Great man!, thank you so much!

  • @narendarsingh4672
    @narendarsingh4672 4 ปีที่แล้ว

    what a nice tutorial sir ji,great

  • @claytonmcgill875
    @claytonmcgill875 2 ปีที่แล้ว

    Thank you so much for this !

  • @thesuperiorman8342
    @thesuperiorman8342 5 ปีที่แล้ว

    I like the way you explain these topics in all your videos.

  • @AShahabov
    @AShahabov 4 ปีที่แล้ว

    Thanks for good explanation!

  • @tahatemuri8170
    @tahatemuri8170 4 ปีที่แล้ว

    Good show and crystal clear

  • @4bitmultiplexer
    @4bitmultiplexer 4 ปีที่แล้ว

    Very excellent explanation...

  • @pearsonkevin4699
    @pearsonkevin4699 3 ปีที่แล้ว

    Short and sweet yet taught ME the difference! Thank you!!!

  • @sidheshwarrandhave5968
    @sidheshwarrandhave5968 2 ปีที่แล้ว

    Its good for me
    great sir

  • @ale_gallardo
    @ale_gallardo 3 ปีที่แล้ว

    Well explained, thanks

  • @moumantiok
    @moumantiok 3 ปีที่แล้ว

    Thank you sir..

  • @heenapatel1728
    @heenapatel1728 ปีที่แล้ว

    Great explanation 👍

  • @RaviKumar-td1oj
    @RaviKumar-td1oj 3 ปีที่แล้ว

    Great explanation sir.

  • @expertreviews1112
    @expertreviews1112 5 ปีที่แล้ว

    Hi sir, but I thought interfaces are abstract and don't contain any logic then how are the differences highlighted in the video work.

    • @questpondvideos
      @questpondvideos  5 ปีที่แล้ว +2

      Interfaces are pointing to a list or some concrete collection

    • @expertreviews1112
      @expertreviews1112 5 ปีที่แล้ว

      Thank you. Can you point out a resource where I can get this type of info?

  • @maelorable
    @maelorable 4 ปีที่แล้ว

    VERY useful video.

  • @lksharma6843
    @lksharma6843 3 ปีที่แล้ว

    Explanation was awesome

  • @bahalulkabir
    @bahalulkabir 3 ปีที่แล้ว

    Thank you very much

  • @trisonics1
    @trisonics1 5 ปีที่แล้ว

    nice and informative. Thanks

  • @bensonputhethu5918
    @bensonputhethu5918 3 ปีที่แล้ว

    This video was awesome, straight to the point!

  • @RiskyBizz
    @RiskyBizz 5 ปีที่แล้ว

    nice video, great information

  • @imadabab
    @imadabab 4 ปีที่แล้ว

    Brilliant. Thanks a lot.

  • @sergeiarhipenko872
    @sergeiarhipenko872 3 ปีที่แล้ว

    thanks for this vid

  • @learningislife2934
    @learningislife2934 3 ปีที่แล้ว

    Sir please make interface video
    Please 🙏

    • @questpondvideos
      @questpondvideos  3 ปีที่แล้ว

      Our video on Abstract class & Interfaces you can watch below :-
      th-cam.com/video/0EnSPBVrbG0/w-d-xo.html

  • @prudhvirajs494
    @prudhvirajs494 3 ปีที่แล้ว

    You are awesome 😎

  • @malkitsaggu
    @malkitsaggu 5 ปีที่แล้ว

    Very clear explanation. Thank you.

  • @atifzafarkhan6703
    @atifzafarkhan6703 3 ปีที่แล้ว

    Worth to watch

  • @bntdgp
    @bntdgp 4 ปีที่แล้ว

    Unique Explaining

  • @finwwwfinwww4669
    @finwwwfinwww4669 2 ปีที่แล้ว

    Thank you!

  • @ayedabboushi7221
    @ayedabboushi7221 4 ปีที่แล้ว

    Many thanks man.

  • @Uzair_Anwar2299
    @Uzair_Anwar2299 5 ปีที่แล้ว

    Good explaination

  • @sujitkumarjha7720
    @sujitkumarjha7720 2 ปีที่แล้ว

    Brilliant 👍

  • @cesareemauritanie5288
    @cesareemauritanie5288 4 ปีที่แล้ว

    Thanks a lot !!!

  • @MrJaneHolliday
    @MrJaneHolliday 4 ปีที่แล้ว

    This is neat.

  • @ayedabboushi7221
    @ayedabboushi7221 4 ปีที่แล้ว

    Many thanks

  • @kumarkashyappandey6278
    @kumarkashyappandey6278 4 ปีที่แล้ว

    You are great, Sir!

  • @ghanshamkashyup6235
    @ghanshamkashyup6235 4 ปีที่แล้ว

    Super sir

  • @musabalriani550
    @musabalriani550 5 ปีที่แล้ว

    Thanks a lot ,This is the best advice in my day.

  • @tamagofukunaga
    @tamagofukunaga 5 ปีที่แล้ว

    Great explanation and information, thank you!