DBreeze.Scheme.CheckAlternativeTableLocationsIntersections C# (CSharp) Method

CheckAlternativeTableLocationsIntersections() private method

Checks if in configuration was supplied alternative path for table location. Returns true if intersection was found. Alternative Path equals to String.Empty - locate in Memory
private CheckAlternativeTableLocationsIntersections ( string userTableName, string &alternativePath ) : bool
userTableName string
alternativePath string
return bool
        internal bool CheckAlternativeTableLocationsIntersections(string userTableName, out string alternativePath)
        {
            alternativePath = String.Empty;

            foreach (var pattern in Engine.Configuration.AlternativeTablesLocations)
            {
                //pattern.Key
                if (DbUserTables.PatternsIntersect(pattern.Key, userTableName))
                {
                    alternativePath = pattern.Value;
                    return true;
                }
            }

            return false;
        }