By Greg McGuffey - 11/16/2006
Is there any way to refresh the data in a BO, without explicitly calling the appropriate Fill method? I.e. I'm changing sequences of items, basically just swapping the value of a sequence field. After I'm done, I need to update the BO so the data in the table is correct. I'm currently using a stored procedure to do the work (cause it was already built). I'm calling this from an object that doesn't know how the BO was filled, so I don't have access to that information. Maybe the BO doesn't either. If not, I suppose what I need to do is do the swapping in the BO, on the data table, then I can refresh the controls right?
|
By Trent L. Taylor - 11/17/2006
The BO does not cache the last query. If you are going to sub class the BusinessLayer, then you could add this functionality any time the FillDataTable or FillByStored procedure methods are called to remember the command. You could then add a method on your interface to "Requery" the BO.
|
By Greg McGuffey - 11/17/2006
OK. I don't think that would have made sense, but our discussion of interfaces in the save post helps alot and I do get it Thanks!
|
|