Switchable Template is missing some methods?

Switchable Template is missing some methods?

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


BBM posted on Monday, August 07, 2006

Why doesn't the Switchable template contain "plain" (ie. non-dataportal) versions of the methods for Insert, Update, and Delete?  They are in the EditableChild template, and I don't see why they wouldn't be necessary for a "child" instantiation of a Switchable object.

Thanks.

BBM

RockfordLhotka replied on Tuesday, August 08, 2006

That is a good point, and you are correct - each data method should exist as a Friend/internal, and the DataPortal_XYZ methods should delegate to them.

BBM replied on Tuesday, August 08, 2006

Thanks Rocky!

rrahlf replied on Wednesday, March 14, 2007

I notice as of 2.1.4 there is still no DeleteSelf() method in the SwitchableObject template.  Should this exist or am I missing something?

RockfordLhotka replied on Thursday, March 15, 2007

That's true - I've added it to my to-do list.

Copyright (c) Marimer LLC