I have a datatable containing 10 columns. I want to select only two columns of them.
I am not able to do it using SelectMany Extension Method.
I know how to get it from Linq To DataSet but trying using this extension method.
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.
The
SelectManymethod is used for flattening a sequence of sequences, not for just selecting a subset of the available columns. Use theSelectmethod instead: