TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
San
NA
804
324.2k
Linq Union join multiple tables and select multiple columns.
Oct 31 2019 8:26 AM
Below query facing issue selecting multiple columns.
var relSite = (from d in _context.Account
join c in _context.AccountRel on d.ID equals c.RelID
join s in _context.AccountType on c.PrelID equals s.ATypeID
where c.ARelID == accountid && s.Type == "Test"
select a.ID)
.Union
var relSite = (from d in _context.Account
join c in _context.AccountRel on d.ID equals c.RelID
join s in _context.AccountType on c.PrelID equals s.ATypeID
where c.ARelID == accountid && s.Type == "Test"
select a.ID)
Reply
Answers (
2
)
Difference B/W IQueryable and IEnumerable
How to get knowledge from LINQ