IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
An abstract data provider class defines required methods. To operate with the custom data model, inheritors must implement these methods.
To create an abstract data provider class for your JobApplication model, perform the following:
ContentDataProviderBase
EXAMPLE: For more information about the contents of the file, refer to class JobsDataProviderBase.cs from the downloaded sample project.
JobsDataProviderBase.cs
In this file, you first make the class inherit from ContentDataProviderBase - the default provider base class for content-based models. Then, you specify the methods required to perform CRUD operations on your JobApplications model. The methods CreateItem, GetItem, GetItems, and DeleteItem are required for the CRUD operations. The method GetKnownTypes() returns the model types that the provider can operate on - in this case the JobApplication model.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important