This article describes the most frequent terms confronted by software geeks during LINQ execution. Let's understand the term “results view will enumerate the ienumerable”. Initially it may be slightly confusing for those who are new to LINQ and DB Context terminology but after this demonstration they may be able to understand this term. This entire process is also well known as deferred execution and immediate execution in LINQ.You can also have a look at the MVC related articles here:
Let's proceed step-by-step to understand the real facts.Step 1: I've chosen already a built application of MVC that deals with entities (DB context). When I first run an application it reaches to the code segment as shown in the following depicted image:Step 2: Execute it further and see the result variable, it prompts you with “expanding the results view will enumerate the ienumerable”.Or you need to iterate over it to get the current value from collection.Step 3: You can make it enumerable after converting to a list type with the help of the .ToList() method. This is also known as immediate execution in LINQ.Kindly have a look at the more descriptive image shown below:I hope you enjoyed this demonstration. A sample application is attached as reference.I hope you enjoyed and that it may help you down the line.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: