Click here to Skip to main content
15,924,317 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can u merge two LINQ Result in One result in Grid view ???

.......
Posted

how about using a union operator ,
check this One , and this.
 
Share this answer
 
use Inner join, left join, right join, union
in your sql statement

or in linq you can use "join"

see example below

C#
var QueryResult = from p in Person
                  join c Company on p.ID equals c.PersonID
                  where c.Country == "Philippines"
                  select new { c.Name, p.Name };



Click here for more information

Vote or Accept solution
If this will help you
thanks
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900