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.
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.
EXAMPLE: For more information about the contents of the file, refer to class JobsFluentMetadataSource.cs from the downloaded sample project.
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