0

Looking to see if there is a way to filter out logical/soft deleted entities by default, but also is overridable so that I can fetch all entities as needed?

wgpubs
  • 8,131
  • 15
  • 62
  • 109
  • Could you clarify want you mean by "default"? Which layer are you wanting/expecting to handle this? – Jecoms Sep 01 '16 at 04:59
  • You could use inheritance. See this answer http://stackoverflow.com/a/18985828/150342 – Colin Sep 01 '16 at 08:16
  • By "default" I mean that the normal behavior for a entity that is "deleted by the user" would be to simply mark that entity's "IsDeleted" field as true. But I want to be able to override this behavior so that I can "really" delete entities from the database if so desired. – wgpubs Sep 06 '16 at 17:23

0 Answers0