Set UseDatabaseNullSemantics = true on EF Core Context

c# entity-framework-core

Question

With EF 6, It is possible to remove unnecessary null-checks by adding this below:

DbContext.Configuration.UseDatabaseNullSemantics = true;

Is it possible to set UseDatabaseNullSemantics on EF Core 3.1 or is there any other workaround?

1
1
2/5/2020 9:55:58 AM

Popular Answer

Is it possible to set UseDatabaseNullSemantics on EF Core 3.1?

According to MSDN on UseDatabaseNullSemantics:

Applies to Entity Framework 6.2.0

Right now it isn't available for EF Core. But as mentioned in the comments, it is a requested feature.

1
2/5/2020 11:58:35 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow