Suppose I have a function call from EF like:
var result = context.myFunction();
the result type is ObjectResult<int?>
. Then I want to use linq to get the single value.
How to write the linq?
Suppose I have a function call from EF like:
var result = context.myFunction();
the result type is ObjectResult<int?>
. Then I want to use linq to get the single value.
How to write the linq?
Maybe something like this
result.SkipWhile(o => !o.HasValue).Take(1)