crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Difference between IQueryable and IEnumerable
Question Posted on 12 Mar 2019Home >> DotNet >> C# >> Difference between IQueryable and IEnumerable

Difference between IQueryable and IEnumerable
There are mainly 4 difference in IQueryable and IEnumberable. Below are the points for the same
(1)IEnumerable Namespace is System.Collections and for IQueryable is is in System.Linq Namespace.
(2)IEnumerable is usefull where we need to do query from in-memory collections for example List, Array and so on. On the other hand IQueryable is usefull where querying data from out-memory for example remote database, service collections.
(3)When doing query in IEnumerable it will firs excute Select Query and load all the data in memory and then apply filter on it is inMemory concept suitable for short data will becaome solw if data is huge. On the other hand Iqueryable is suitable where data is taken in outMemory and all filter should be apply on the server for example Remote Database and Service.
(4)IEnumerable is usefull for LINQ to Object and LINQ to XML queries on the other hand IQueryable is beneficial for LINQ to SQL queries.
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Simplest definition of partial classes and its rules?

Definition of Tuple class with some examples?

Define Race Condition in cSharp?

C#.Net Reserve Words

can we inherit private class level variables in c#






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap