company logo

DBBaseContext :: asPropertyContext - Convert to property context

The function may be called in order to convert the more general DBBaseContext to a PropertyContext.

The function throws an exception, when the current context is not a PropertyContext instance.

Return value:  Property context ( odaba::PropertyContext & )

Property context usually refers to an instance of an application defined property context class for the current property of a selected instance. When no property context has been defined, the context refers to the default property context class.

Implementation details

odaba::PropertyContext & DBBaseContext  :: asPropertyContext (  )

The function returns a PropertyContext context, when the current DBBaseContext is a PropertyContext instance.