Menu

Question about CMultiRetrieveCriteria

2004-10-26
2013-03-07
  • Nobody/Anonymous

    hi!
    I have found the CMultiRetrieveCriteria class in the api reference. but i am quite confuse about how it can be used.
    What's the difference between CMultiRetrieveCriteria and CRetrieveCriteria? CRetrieveCriteria also can retrieve multiple class through an object graph, right?
    Can you show me some sample code on how to use CMultiRetrieveCriteria?

    Thanks!

     
    • Richard Banks

      Richard Banks - 2004-10-26

      The big difference is that a CRetrieveCriteria only works on one class.  A CMultiRetrieveCriteria works across multiple classes by following the associations defined in the XML file.

      Both criteria allow you to retrieve multiple objects from the database.

      The best way to see the classes in use is to have a look at the NUnit tests for the framework - get the latest source code from CVS or have a look at the web based cvsviewer at
      http://cvs.sourceforge.net/viewcvs.py/jcframework/Nunit/

      If you have more questions after looking at the code, please feel free to ask.

      - Richard.

       
    • Nobody/Anonymous

      Ok,I will read the NUnit tests code, Thanks again.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.