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.
After you Testimonials module: Create the context class of the Testimonials module, you need to create the metadata provider. To do so:
using
Telerik.OpenAccess.Metadata;
Telerik.Sitefinity.Data;
Telerik.Sitefinity.Data.OA;
Telerik.Sitefinity.Model;
public
class
TestimonialsMetaDataProvider : IOpenAccessMetadataProvider, IOpenAccessCustomContextProvider
{
}
MetadataSource GetMetaDataSource(IDatabaseMappingContext context)
return
new
TestimonialsFluentMetaDataSource();
SitefinityOAContext GetContext(
string
connectionString, Telerik.OpenAccess.BackendConfiguration backendConfig, MetadataContainer metadataContainer)
TestimonialsContext(connectionString, backendConfig, metadataContainer);
ModuleName
get
TestimonialsModule.ModuleName; }
You inherit from the IOpenAccessMetadataProvider interface and from the IOpenAccessCustomContextProvider interface. You create methods for getting the metadata source and the context. Then, you create property for the module name.
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