Nếu hành vi hiện tại đang làm phiền bạn, hãy xem xét đặt UseDatabaseNullSemantics thành true .
public class MyContext : DbContext
{
public MyContext()
{
this.Configuration.UseDatabaseNullSemantics = true;
}
}
hoặc
myDbContext.Configuration.UseDatabaseNullSemantics = true;