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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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.
Ok,I will read the NUnit tests code, Thanks again.