Ticket Q536728
Visible to All Users

breaking change in DeleteQueryGenerator.GenerateDelete

created 11 years ago

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!

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

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.

    Comments (2)

      HI Alexey,
      It's working again!
      Thank you.

      DevExpress Support Team 11 years ago

        You're welcome.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.