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
Denmark Puso
NA
232
50.2k
Joining table does not accept null values. mvc5 c#
Mar 12 2020 10:48 PM
i have 3 tables and when the 2 table is null i have an error. what is the problem with my code.
var list = (from t
in
tracking
join d
in
_departureItemsTableService.GetAll() on t.box_id.Trim() equals d.BoxNo.Trim() into mar from submark
in
mar.DefaultIfEmpty()
join dt
in
_departureTableService.GetAll() on submark.DepartureId equals dt.DepartureId into dep from depart
in
dep.DefaultIfEmpty()
select
new
TrackingListModel
{
Id = t.Id,
Name = t.firstname_s +
" "
+ t.lastname_s,
Departure = depart?.DepartureDate ?? String.Empty,
});
Reply
Answers (
2
)
how to add sitemap.xml file in mvc
Currently Login with linkedIn