Is there any possibility to get only one column from .Where statement? For example - ID.
List<testB> test = db.testB.Where(x => x.UserID == userId).ToList();
Here I get all entites testB.
And I just want to return List<int> with testB.ID instead of List<testB>. How can I do this?