/// <summary>
        /// Gets the entity framework context.
        /// </summary>
        /// <param name="provider">The provider.</param>
        /// <returns></returns>
        private UserDashboardsEFDbContext GetContext(IUserDashboardsEFDataProvider provider)
        {
            if (provider.ProviderContext == null)
            {
                throw new Exception(String.Format("Provider {0} is not initialized.", provider.Name));
            }

            return(UserDashboardsEFDataConnection.GetContext(this.connectionName, provider));
        }