I have one table having ID and other attributes.
How can I get list of int of IDs by LINQ query on that table?
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.
Use the Select method to project your result into a different format:
That should do it, note you can also use the more SQL-like syntax:
EDIT:
Also note, this is C# syntax, if you want a different syntax you need to clarify which language you’re using.