As far as I understand the scenario you implement, you need to retrieve from the database only those objects that are not marked as removed.
If that is indeed the case, you can achieve the necessary result thanks to the OQLStatement property of ObjectProvider. Let's assume that the name of the class is DomainClass
, the backend is SQL Server
and the IsRemoved
property of the class is of type Boolean
. Than the filtering statement would be:
I hope that works for you. If my assumption is not correct or if you have additional questions, do not hesitate to get back to us.
All the best,
the Telerik team