I am using LINQ to SQL to interact with my database, and I am trying to do the following to update a single row in the database:
DataClassesDataContext dataContext = new DataClassesDataContext();
TableName aRow = (from rows in dataContext.TableNames where rows.x == y select rows).Single();
aRow.attribute = "something";
dataContext.SubmitChanges();
shouldn't the database be updated with the change I made in the row? or is something missing?
thanks for any help
Jimmy source
share