I have a following query
from c in Customers
where c.salary == "2000"
select new
{
c.Id,
c.Name,
c.Salary
}
The output is
ID Name Salary
Id-9395 Ralph 2000
Id-14591 Ramesh
Id-7958 Rakesh
Id-15784 Ram
The salary is same for all
I want it to be displayed for all id’s. The output has to look like below.
ID Name Salary
Id-9395 Ralph 2000
Id-14591 Ramesh 2000
Id-7958 Rakesh 2000
Id-15784 Ram 2000
How do i do this?
Try this, although it is no different from the query you already have:
When I run the above, I get the result you want. I also get the same result when I run: