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.
Fluent mappings provide a single place where all persistent classes are configured. To create the fluent mappings for the Jobs module, you must do the following:
EXAMPLE: For more information about the contents of the file, refer to class JobsFluentMapping.cs from the downloaded sample project.
JobsFluentMapping.cs
In this class, all mappings inherit OpenAccessFluentMappingBase and override the GetMapping method. You first create a mapping configuration. Then, you specify the name of the table. Finally, you specify the properties in the mapping.
ContentBaseMetadataSource
EXAMPLE: For more information about the contents of the file, refer to class JobsFluentMetadataSource.cs from the downloaded sample project.
JobsFluentMetadataSource.cs
In this class, you inherit from ContentBaseMetadataSource and reuse the functionality in the method. You must override the BuildCustomMappings method by adding JobsFluentMapping to the mappings created in the base implementation.
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