I like to use linq to do a union on 3 tables.
Not sure why something like the following would not work:
var repdata = (from p in db.Table1
select p)
.Union(from p in Table2
select p);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Uniononly works with the same element type. You could use:Here the anonymous type serves as a common type to project all three tables onto, so that
Unioncan work.