public void Initialize(string providerName, NameValueCollection config, Type managerType) { this.connectionName = config["connectionName"]; if (string.IsNullOrEmpty(this.connectionName)) { this.connectionName = "Sitefinity"; /* the default connectionName */ } var provider = this.DataProvider as IUserDashboardsEFDataProvider; if (provider != null) { UserDashboardsEFDataConnection connection = UserDashboardsEFDataConnection.InitializeConnection(this.connectionName, provider); provider.ProviderContext = new UserDashboardsEFDataProviderContext() { ProviderKey = Guid.NewGuid().ToString(), ConnectionId = connection.Name }; this.connectionName = connection.Name; } }