I have a SQL table “tablex” with 3 columns(A, B ,C ).
The following lambada expression returns 10 rows.
var versions = versionRepository.GetVersions(a.id)
Column B of the 10 results store data as: 1,2,3,4,5,6,7,8,9,10
Can someone help me with the lambda expression to only get results for column C where b in (2,3,4).
So I should only get 3 rows of column C data.
Use the
Whereextension method to filter the data, and theSelectextension method to get only theCproperty:(The part
v => v.Cis an example of a lambda expression.)