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
Sivakumar
NA
551
217.7k
Cannot implicitly convert type 'System.Linq.IQueryable'
Oct 4 2015 3:41 AM
Hi ,
This is my code :
public int ReadNotification(int memberId, int NotificationId)
{
using (KiwiDbContext context=new KiwiDbContext(_ConnectionString))
{
NotificationData nd=new NotificationData();
nd.IsRead=true;
var quer = from n in context.Notifications where n.MemberID == memberId && n.IsRead == false select nd;
return quer;
}
}
When I execute get an error like this :
Cannot implicitly convert type 'System.Linq.IQueryable' to int
Please resolve this issue.
Thanks
Reply
Answers (
2
)
How to update table column using linq to sql
Data not updated to database