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.
To create a custom content-based model:
In Visual Studio, in your project, open the context menu of the Model folder and click Add » New Item...
Model
EXAMPLE: For more information about the contents of the file, refer to class JobApplication.cs from the downloaded sample project.
JobApplication.cs
In this class, JobApplication is the name of your model. First, you mark your custom model as Persistent and specify the manager which is used to operate on this model. You implement the manager later on. By choosing Content as the parent class, your custom model automatically inherits a ready-to-use interface and functionality:
Since content lifecycle is not required for this model, you explicitly disable content lifecycle by setting the SupportsContentLifecycle property to false.
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