c# - Which LINQ statements force Entity Framework to return from the DB? -
i know of several linq statements cause ef evaluate , return results form db memory. .tolist() one. have comprehensive list of statements this?
not sure of...
.singleordefault() .union() edit: wish accept these answers. great info everyone!
it's long list. boil down
aggregate all<tsource> average contains count elementat<tsource> elementatordefault<tsource> empty<tresult> first firstordefault last lastordefault longcount max min sequenceequal single singleordefault sum toarray<tsource> todictionary tolist<tsource> tolookup the rest either deferred streaming execution or deferred non-streaming execution.
in light of question, singleordefault() immediate execution , union() deferred streaming execution.
Comments
Post a Comment