I just want to confirm... LINQ-to-SQL queries never execute (hits the database) until it is enumerated, right?
Does anyone know if this is the same for LINQ-to-Entities?
Thanks!
I just want to confirm... LINQ-to-SQL queries never execute (hits the database) until it is enumerated, right?
Does anyone know if this is the same for LINQ-to-Entities?
Thanks!
Yes, they behave the same.
The query will be executed upon the first usage of the variable.