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
Guest User
Tech Writer
611
129.4k
Face Null Value Error.
Dec 7 2020 11:11 PM
Hello every one .I have face a null value error
I have use three table use with navigation
1. UserMatser -ParentTable
2.UserSub -Child Table
it's my query
var Result = _context.UserSubscriptionMaster.Where(x => x.User.UserId == Id).
Select(x => new UserViewProfile()
{
UserName = x.User.UserName,
UserProfilePic = x.User.UserProfilePic,
Plans = x.Plan.PlanName,
UserEmail = x.User.UserEmail
}).FirstOrDefault();
if (Result != null)
obj_Detail.ViewUserDetail = Result;
It's working .But it's working with data in two table with same id. I have face null value in Data not availabe in two table .
Reply
Answers (
1
)
Converting Dataset to Json with Empty datatable's columns
PDF XFA FILL FORM