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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...