You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, you have to explicitly exclude soft deleted records with where condition. It would be convenient to exclude these records automatically. Other ORMs solve this with something like global filter.
Proposition:
In OnConfiguring, use DbContextOptionsBuilder to set default behavior via flag enum:
do nothing (default)
exclude soft deleted records (main table/entity)
exclude soft deleted joined records
There should be possibility to override this behavior in each query. Investigate what's best API for that.
Related: besides this scenario, is there need for global filters?
The text was updated successfully, but these errors were encountered:
Currently, you have to explicitly exclude soft deleted records with where condition. It would be convenient to exclude these records automatically. Other ORMs solve this with something like global filter.
Proposition:
In
OnConfiguring
, useDbContextOptionsBuilder
to set default behavior via flag enum:There should be possibility to override this behavior in each query. Investigate what's best API for that.
Related: besides this scenario, is there need for global filters?
The text was updated successfully, but these errors were encountered: