bilal-fazlani / tracker-enabled-dbcontext

Tracker-enabled DbContext offers you to implement full auditing in your database
https://tracker-enabled-dbcontext.bilal-fazlani.com/
Other
217 stars 110 forks source link

Can SoftDelete be modified to take expression instead of a property? #147

Open GlennJohnson opened 7 years ago

GlennJohnson commented 7 years ago

We use a property for softdelete called "IsActive" which is exactly opposite of what the tracker is looking for.
I tried this: GlobalTrackingConfig.SetSoftDeletableCriteria (entity => !entity.IsActive); but it appears that the exclamation point is being ignored. If you could change this to take a Func instead of a property, you would make my life so much better ;) thanks