Deferred execution linq c# Tolower toupper tostring -
im wondering when this:
iqueryable<customer> customers = new iqueryable<customer>(); var customers = db.customers.where(x=> x.name.tolower() == "john");
does deferred execution stop @ use of methods "tolower() or toupper or tostring"?
does deferred execution stop @ use of methods "tolower() or toupper or tostring"?
it not matter method called line x.name.tolower() == "john"
not executed (actually complete where()
not called) unless customers
variable materialized or enumerated or unless bring results in memory calling tolist()
@ end of query.
Comments
Post a Comment