10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
sankeerth m
1.7k
460
9.1k
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?