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
sankeerth m
NA
484
24.5k
Null Reference exception object reference not set to instance of an ob
May 28 2021 11:24 AM
public bool OptionExists(int id)
{
return _context.Option.Any(e => e.OptionID == id);
//var city = AggregateOptionExists.GetAggregateOption(id);
//if (city == null)
// {
// return NotFound();
// }
// return city;
}
I am having null values in Db how to handle null reference exception at _context.Option
Reply
Answers (
2
)
cannot import excel to datagridview in c#
How can I convert a Control to a specific type like Button?