I'm having a problem updating an item using Linq to SQL in WP8. When I run the code, the Object gets updated fine when going trough the app. However, as soon as I leave the app, the update gets lost.
It seems that .SubmitChanges() does not work. What could be the reason?
Public Sub AdjustTile(ByVal thisTile As TileObject, ByVal info As Integer)
Dim query = From row As TileObject In tileDb.TileTable
Where row.id = thisTile.id
Select row
For Each row As TileObject In query
row.ChoosenWide = info
Next
tileDb.SubmitChanges()
End sub
The functions InsertOnSubmit and DeleteOnSubmit work fine...