Implementing the provider pattern

Access to job applications is implemented using the provider model pattern, which features clear separation of responsibilities and allows the application to choose from different provider implementations without changing any code. This section provides the steps for implementing the provider pattern for the Jobs module. It demonstrates basic aspects of the use of OpenAccess ORM and Sitefinity’s API for the creation of modules. First, you implement the custom JobApplication model. Then, you define an abstract data provider class to work with the JobApplication model and implement an OpenAccess version of the provider. Finally, you create a manager to work with the provider.

To implement the provider pattern, perform the following:

  1. Creating the model

  2. Defining the abstract data provider

  3. Creating the fluent mappings

  4. Creating the OpenAccess data provider

  5. Creating the manager

  6. Creating the configuration class

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK