StrataFrame Forum

Any method to return all record?

http://forum.strataframe.net/Topic5634.aspx

By kkchan - 1/6/2007

Hi,

Any method to return all records by default? I know I can call this.filldatatable("select * from my table"), but I would like to know if any existing method.



If that is not any, I would like to add this method "FillAll" into businessobject base class. How could I accomplish this?



Thank you
By Trent L. Taylor - 1/7/2007

We do not have an intrinsic method to retrieve all records.  This is risky business in most cases it too many records are returned.  This can cause a slow performing application, thus the reason we do not have this as a base method.

There are a number of ways for you to do this yourself.  Create the FillAll method for each BO or subclass the BusinessLayer and inherit all of your BOs from that subclassed BO.