Explain how you can retrieve a single row with LINQ?
Answer Posted / Prashant Verma
To retrieve a single row with LINQ, use the First() or Single() method on the result of the query. The difference between the two is that First() returns the first element if the sequence contains multiple elements, while Single() throws an exception if there are multiple matching elements.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category