/// <summary>
        /// Adds a Cache Dependency.
        /// </summary>
        /// <param name="settings"></param>
        /// <param name="databaseName"></param>
        /// <param name="sqlCacheDependencyTables"></param>
        /// <returns></returns>
        public static CacheSettings AddCacheDependency(this CacheSettings settings, string databaseName, params ITable[] sqlCacheDependencyTables)
        {
            if (sqlCacheDependencyTables == null)
            {
                return(settings);
            }

            var cacheDependencies = sqlCacheDependencyTables.Select(t => new SqlCacheDependency(databaseName, t.TableName()));

            return(settings.AddCacheDependency(cacheDependencies.Cast <CacheDependency>()));
        }