protected override void InitializeDefaultProviders(ConfigElementDictionary<string, DataProviderSettings> providers)
{
// add default provider
providers.Add(new DataProviderSettings(providers)
{
Name = "OpenAccessLocationsDataProvider",
Description = "A provider that stores locations data in database using OpenAccess ORM.",
ProviderType = typeof(OpenAccessLocationsDataProvider),
Parameters = new NameValueCollection() { { "applicationName", "/Locations" } }
});
}
protected override void InitializeDefaultViews(ConfigElementDictionary<string, ContentViewControlElement> contentViewControls)
{
// add backend views to configuration
contentViewControls.Add(LocationsDefinitions.DefineLocationsBackendContentView(contentViewControls));
// add frontend views to configuration
contentViewControls.Add(LocationsDefinitions.DefineLocationsFrontendContentView(contentViewControls));
}