Can anybody help me with this: I want select all records from datatable which have for example sid=123 and after that save they with sid=456.
How can I do this with LINQ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
or rather use normal foreach
edit: sorry, i didn’t notice that datatable. you can’t query rows on datatable directly (they don’t impletement IEnumerable)
but you can do something like this