So here's my situation:
I'm soft-deleting some rows in a table, using a IsDeleted
flag, so that a can keep a trace of my archived data. I do so by overriding the SaveChanges
statement in my ObjectContext
.
The question is: how can I select only the row(s) that have IsDeleted == false
, without having to specify && !IsDeleted
in every queries?
Is there a way I can specify this on my context directly?
tkx!