Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Cannot implicitly convert type 'System.Linq.IQueryable'
Sivakumar
9y
743
1
Reply
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
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to update table column using linq to sql
Data not updated to database