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
Mike Fif
NA
15
21.4k
Row not found
Mar 9 2012 5:18 AM
Hi,
I get the error Row not found or changed, when I try to update the database.
so far I've tried the following without succes:
- changed property Update check of all columns to "never"
- the refresh option
adm1n.Refresh(RefreshMode.KeepCurrentValues, beheer3);
Here's the code
protected void Button13_Click(object sender, EventArgs e)
{
FacturatieDataContext adm1n = new FacturatieDataContext();
Beheren beheer3 = new Beheren();
Beheren beheer2 = new Beheren();
//select the row
var b3h3er1 = from c in adm1n.Beherens
where c.Naambeheer == TextBox1.Text
select c;
//Make a new beheren item
beheer3.Naambeheer = TextBox4.Text;
//the old beheren item
beheer2.Naambeheer = TextBox1.Text;
//submit the changes
adm1n.Beherens.Attach(beheer3,beheer2);
adm1n.SubmitChanges();
}
Does anyone know how to solve this issue?
Thanx
Mike
Reply
Answers (
0
)
How do I compare a List against a DB Table using LINQ?
Lambda expression in LINQ