This document gives a detailed information about the classes that are generated for a
project that comply with OData V4.
Introduction
The Service Builder uses patterns for separation between the generated logic and your
own code. It generates two types of classes:
- Base Class: The base classes contain the Service Builder generated
logic. The logic in the base class is not overwritten on project
regeneration. During regeneration if any error is present in the project, a
warning message is displayed. Do not modify the code in this class
- Extension Class: The extension class names have the
suffix, EXT. An extension class is a subclass of the base class that is
created once, only when the project is generated for the first time. An
extension class contains no logic. Service Builder provides the extension
class for you to write own code. Regenerating the project does not overwrite
your code in the extension class.
When the classes are created, they are listed in the Runtime Artifacts folder
of the project, as follows:
- Model Provider Class (MPC): Two classes are generated for the MPC:
Data Provider Class (DPC): Two classes are generated for the DPC:
You can edit and modify the names of the classes before they are
generated.
Note After the classes have been generated, their names cannot be
modified.