In LINQ how do i insert into all columns of type int in a table1 the same number value: 1, without specifying each column with the number (colint1, colint2, colint3, colint4) ?
Share
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.
You can use reflection with something like this for an object ‘o’ and a new integer value ‘newValue’ (sorry, I don’t have VS on this machine to test it out):
Then just be sure to save your changes