Hvis den aktuelle adfærd generer dig, kan du overveje at indstille UseDatabaseNullSemantics til true .
public class MyContext : DbContext
{
public MyContext()
{
this.Configuration.UseDatabaseNullSemantics = true;
}
}
eller
myDbContext.Configuration.UseDatabaseNullSemantics = true;