I'm searching for a way to delete logically all my data from db, avoid phisical deletion of table rows, and in the old castle forum i've found a simple-but-working solution: http://forum.castleproject.org/viewtopic.php?t=3635&highlight=deleted public override void Delete() { IsDeleted = true; Update(); }
All my AR classes extends a base class (that extends ActiveRecordValidationBase<T>) that overrided Delete method. Now I need to know how to manage this property whe i read objects. Methods like Find, FindAll and others of course retrieve also all my deleted objects (i.e. objects with IsDeleted true): I'm searching for a single place (if exists) to define a rule to ignore all objects logically deleted. Any suggestion? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
