Verifique https://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcontextconfiguration.usedatabasenullsemantics(v=vs.113).aspx
Se o comportamento atual estiver incomodando você, considere configurar
UseDatabaseNullSemantics
para true
. public class MyContext : DbContext
{
public MyContext()
{
this.Configuration.UseDatabaseNullSemantics = true;
}
}
ou
myDbContext.Configuration.UseDatabaseNullSemantics = true;