Тёмный

IEnumerable VS IQueryable (in .NET Core) 

DotNet Core Central
Подписаться 27 тыс.
Просмотров 12 тыс.
50% 1

IEnumerable is an interface that exposes an enumerator. And an enumerator is used for iteration of a generic collection (or array). The class that implements IEnumerable is responsible for exposing the enumerator and providing its implementation.
IQueryable interface on the other hand, is intended to be implemented by data providers. IQueryable provides functionality to execute queries against a specific data source. And IQueryable is derived from IEnumerable.
Data access ORM (Object Relational Mapper) framework like Entity Framework Core exposes the implementation of IQueryable.
In this video, I will walk through creating a console application. And the application will use Entity Framework Core to access Employee table from a database. I will also add logging in the Entity Framework Core, to see actual queries fired against the database.
Once the code is executed, I will compare the difference in the query when we access the data using an IQueryable interface versus an IEnumerable interface.

Наука

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@codefoxtrot
@codefoxtrot Год назад
Excellent video, it's very well grounded by using a simple Console app to demo the concept, and by starting by creating a new project in Visual Studio. I can't stand when people demo a concept by opening some large project that only they are familiar with, and then expect everyone to instantly understand and follow along. So kudos to you, this made all the difference for me.
@DotNetCoreCentral
@DotNetCoreCentral Год назад
Thanks for watching!
@md.shamswadudabbir12
@md.shamswadudabbir12 3 года назад
Thank you. You just clear my years of confusion.
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@MD. Shams Wadud Abbir, thanks for watching! Glad I could help.
@musa4747
@musa4747 2 года назад
Thank you so much for this brother. You're a natural when it comes to explaining things
@DotNetCoreCentral
@DotNetCoreCentral 2 года назад
Thanks for watching!
@CyberAbyss007
@CyberAbyss007 2 года назад
Thank you! Much appreciated. Got stuck on hot project and this was exactly what I needed.
@DotNetCoreCentral
@DotNetCoreCentral 2 года назад
Thanks for watching!
@oneworldnoborders
@oneworldnoborders 2 года назад
Thanks , a beginner questions? why doe you annotate a table?
@mohamedmahmoudkamel3434
@mohamedmahmoudkamel3434 Год назад
Thanks for your effort but how you wrote the take() method in another line after the query but when it executed ,we saw them in the same query?
@gamal09
@gamal09 2 года назад
Thnx Man, you are explain great things . Keep going on
@DotNetCoreCentral
@DotNetCoreCentral 2 года назад
@Gamal Ahmed, thanks!
@SubVengeance
@SubVengeance 3 года назад
Nice one! Thank you!! :)
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@SubVengeance thanks for watching!
@elvargas1327
@elvargas1327 2 года назад
Beautiful thanks!!!
@DotNetCoreCentral
@DotNetCoreCentral 2 года назад
@EL Vargas, thanks!
@DotnetCoreTelugu05
@DotnetCoreTelugu05 4 года назад
Good...
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@DotnetCoreTelugu thanks!
@Positivevibes-xn6uy
@Positivevibes-xn6uy 2 года назад
Thanks
@DotNetCoreCentral
@DotNetCoreCentral 2 года назад
@Positive vibes, thanks for watching!
Далее
Reflection introduction for .NET Core (C#)
19:56
Просмотров 11 тыс.
When to use - IEnumerable vs IList vs ICollection?
12:05
IDisposable Design Pattern (.Net Core)
12:29
Просмотров 11 тыс.
Internals of Select and SelectMany (LINQ Internals)
15:33
IEnumerable, IEnumerator, IQueryable in C# .NET
6:13
Don't throw exceptions in C#. Do this instead
18:13
Просмотров 253 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 340 тыс.