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
Data not updated to database
Oct 4 2015 7:55 AM
Hi,
This is my code :
public NotificationData ReadNotification(int memberId, int NotificationId)
{
using (KiwiDbContext context=new KiwiDbContext(_ConnectionString))
{
NotificationData nd=new NotificationData();
nd.IsRead = true;
var query = (from n in context.Notifications where n.MemberID == memberId && n.NotificationID == NotificationId && n.IsRead == false select new NotificationData { NotificationID=n.NotificationID, Message=n.Message, CreatedTime=n.NotificationTime, IsRead=n.IsRead });
return nd;
}
}
When I execute the data will be displayed but not saving to database
Please give me correct code for that
Reply
Answers (
2
)
Cannot implicitly convert type 'System.Linq.IQueryable'
i want send lpr command to cmd in c#