Using Linq to Sql, does not update, but does not throw exception

Posted by Russell Steen on Stack Overflow See other posts from Stack Overflow or by Russell Steen
Published on 2010-03-22T15:56:09Z Indexed on 2010/03/22 16:31 UTC
Read the original article Hit count: 380

Filed under:
|
|

Running .net 2008, asp.net, Linq to sql, sql server 2008 express

Foo f = db.Foo.First(x => x.ID == id);
f.IsValid = true;
db.SubmitChanges();

I have a very basic table, which has several fields, and no FK constraints. None of the data saves when I call .SubmitChanges(), but no error is thrown. Any ideas?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about linq-to-sql