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
Rohan Ramani
NA
786
144.7k
"Object reference not set to an instance of an object" LINQ join error
Dec 11 2020 2:52 AM
Hi All,
I am joining the tables using LINQ. I am getting the error while running "Object reference not set to an instance of an object" . Don't know where I am missing.
var leadlist = from lead
in
_context.CallDetail.Include(z => z.OutCome).Where(x => x.IsDeleted !=
true
).ToList() join appoint
in
_context.AppointmentDetail on lead.CallId equals appoint.CallId into ledapp
from appoint
in
ledapp.DefaultIfEmpty() join allocateto
in
_context.UserMaster on appoint.RelationshipManagerId equals allocateto.UserId into ledAllocateTo
from allocateto
in
ledAllocateTo.DefaultIfEmpty()
Reply
Answers (
2
)
Code is manipulating LINQ results somehow?
Like Query in Linq