Hi,
I've implemented in a couple of projects the extension suggested at the bellow link in order to delete large object collections.
http://blog.zerosharp.com/fast-batch-deletions-with-devexpress-xpo/
Just migrate those to v13.1.8 and DeleteQueryGenerator.GenerateDelete changed the arguments. It now requires an ObjectGeneratorCriteriaSet as the second argument instead of a CriteriaOperator.
I've tried to update the code without sucess and I can't find documentation for ObjectGeneratorCriteriaSet.
Appreciate your help on this!
breaking change in DeleteQueryGenerator.GenerateDelete
Answers approved by DevExpress Support
Hello Jose,
The ObjectGeneratorCriteriaSet is designed for the internal use, that is why it is not described in the documentation.
Use the ObjectGeneratorCriteriaSet.GetCommonCriteriaSet method to get the ObjectGeneratorCriteriaSet object from the criteria.
C#List<ModificationStatement> collection = DeleteQueryGenerator.GenerateDelete(classInfo,ObjectGeneratorCriteriaSet.GetCommonCriteriaSet(criteria), batchWideData);
Feel free to contact us if you experience any further difficulties.