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
Marius Vasile
590
1.9k
146.2k
asp.net core join query not showing all data
Mar 12 2021 8:26 AM
I have two table, WOMain and WOPlanner, related to each other with ID. What I want, is to run a query and add to ViewModel data from both tables, even if is there is no related data in WOPlanner. Right now, I can only see data that has records in both tables.
WOVL = await (from a in _context.WOMains.Where(s => s.OrgID == orgid)
join b in _context.WOPlanners on a.WOMainID equals b.WOMainID into Temp1
from c in Temp1
select
new
WOViewIndex
{
WOMainID = a.WOMainID,
WONumber = a.WONumber,
WONumberS = c.WONumberS,
CreateDate = a.CreateDate,
Deficiency = a.Deficiency,
WOStatus = a.WOStatus
}).ToListAsync();
Reply
Answers (
4
)
Session value is not retained when httpCookies requireSSL="true"
.NET Core 5.0 TestServer