Where is DataPortal_Fetch on BusinessBase<T>?

Where is DataPortal_Fetch on BusinessBase<T>?

Old forum URL: forums.lhotka.net/forums/t/10336.aspx


hramos360 posted on Tuesday, May 03, 2011

Hi,

I'm trying to fetch some data from a BusinessBase<T> class.

I can override DataPortal_Create(), DataPortal_Update()... but I see no DataPortal_Fetch

Sure, I can type it in, but why is DataPortal_Update virtual and DataPortal_Fetch

not virtual?

ajj3085 replied on Tuesday, May 03, 2011

Create commonly has no parameters in most cases, so a base is provided which you can override.  The same goes for update and insert; they never take parameters as the object should contain all the state it needs.  Fetch on the other had usually will require at least one parameter to fetch the correct object, and there's so many possible ways to specify which one to fetch, the framework leaves out a base to override.

It was there at one point, but as you may have guessed, no one ever ever overrode it, and thus it was removed.

Copyright (c) Marimer LLC