Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hi
My mvc Linq query asking error like this
Error
Sequence contains more than one element
My Query This
var emp=empInfo.AddressDetails.Single().FirstName
How to solve this any one solve this.
Hi Jayakumar,
Try this:
var emp=empInfo.AddressDetails.First().FirstName
And read please about Single() method ))
http://www.dotnetperls.com/single
Thanks
Hi
Alex
your query Repetaed single record in the first record .
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to solve this linq query.
hi
My mvc Linq query asking error like this
Error
Sequence contains more than one element
My Query This
var emp=empInfo.AddressDetails.Single().FirstName
How to solve this any one solve this.
Hi Jayakumar,
Try this:
And read please about Single() method ))
http://www.dotnetperls.com/single
Thanks
Hi
Alex
your query Repetaed single record in the first record .
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.