try this: replace the first line with (place this inside the using
statement)
var wu = dbxupdate.webUsers.single(i=>i.id== webUserId);
wu.OnlineStatus = whatever;
code continues... in order to update an entity you must get an instance of it. otherwise you're creating a new one where properties that are not declared get a null
value.