I have seen lot of posts talking about IEnumerable
that it applies filtration in the memory and not in SQL server like IQueryable
.
But,
I have table having 20 records
out of only one has Id = '12345'
.
When i do
IEnumerable<Customer> customer = _context.Customer.where(x => x.Id== '12345');
It returns 1
row and not of 20
rows.
Why?
My understanding is it would return 20 rows initially, later on when i do
var result = customers.ToList();
It will return 1 record.