× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You are correct, in GetByExample() you can pass a second parm that is a
Conjunction parameter to specify AND or OR. There's also an opportunity
for the class to get involved in a callback to add additional parameters
to the query (ignore all rows marked as deleted) and we'll follow
relations set on the example object, but yes, it's targeted at simple
queries. For the more advanced ones we do exactly what you're saying, we
add GetBySomeSpecificRequirement() and
GetBySomeOtherSpecificRequirement() methods.

The ORM base class also has a GetBySQL(), but it's protected, so only
children (other business objects) can use it. Of course, the business
object could expose a more relaxed query mechanism if it needed to.

It's the 80/20 rule (95/5?) The simple stuff gets you 95% of the way
there, for those 5% of the time cases, you need to do more work.

As for using other providers, much of what we're doing is off-i anyway
these days. When we have a choice, we're choosing SQLServer as we simply
find it more capable. Of course, that's only true when you don't have
RPG code that's trying to access the data too. :-)

-Walden


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.