Linq Lambda - Get 2 columns from all rows RRS feed

  • Question

  • Hi All,

    I have a table using LocalDB.  I want to grab only the data from only 2 columns of all rows.  Could someone give me an example of that please.  I want to get RowID, and Description from MyTable

    MyTable.All( t => t.RowID, t.Description)  I know that's not correct but I can't find the correct syntax for doing so.

    thank you

    Tuesday, October 4, 2016 2:09 AM


All replies