In my project, I want to update a specifiy data set's column using Z.EntityFramework.Plus. I'm using the following code:
await db.Features.SingleUpdateAsync(new Feature()
{
ID = featureInfo.ID,
Unit = unit,
});
The Feature
class consists of multiple columns. I only want to update the Unit
column for a given ID
. However, this statement always tries to reset all the other columns to null
. So I think that I've misunderstood how this method works in general.
How can I update only the given unit value without modifying (or having to load) all the other values?