protected override void InitializeDefaultProviders(ConfigElementDictionary<string, DataProviderSettings> providers)
{
providers.Add(new DataProviderSettings(providers)
{
Name = "OpenAccessDataProvider",
Description = "A provider that stores news data in database using OpenAccess ORM.",
ProviderType = typeof(OpenAccessDataProvider),
Parameters = new NameValueCollection() { { "applicationName", "/Products" } }
});
}
protected override void InitializeDefaultViews(ConfigElementDictionary<string, ContentViewControlElement> contentViewControls)
{
contentViewControls.Add(ProductsDefinitions.DefineProductsBackendContentView(contentViewControls));
contentViewControls.Add(
CommentsDefinitions.DefineCommentsBackendContentView(
contentViewControls,
ProductsDefinitions.BackendCommentsDefinitionName,
this.DefaultProvider,
typeof(ProductsManager),
typeof(ProductsResources).Name));
contentViewControls.Add(ProductsDefinitions.DefineProductsFrontendContentView(contentViewControls));
contentViewControls.Add(
CommentsDefinitions.DefineCommentsFrontendView(
contentViewControls,
ProductsDefinitions.FrontendCommentsDefinitionName,
this.DefaultProvider,
typeof(ProductsManager)));
}