我正在尝试使用here所示的DataServiceContext
更新远程表
在其他表上,此方法对我来说效果很好,但现在我收到此错误:
不能转换为不受支持的类型'DateTimeOffset'
这是我的代码:
decimal hungerPercent = selectedWeight / (selectedDailyPercent * selectedPortionHeads * _batchWeight); //some calculation
var DeliveryGroup = _container.DeliveryGroups
.Where(x => x.GroupCode == selectedGroupCode && x.Branch == branch).First();
DeliveryGroup.HungerPercent = hungerPercent;
_container.UpdateObject(DeliveryGroup);
_container.SaveChanges();