src/Calway.Configuration.SqlServer/SqlTableConfigurationProvider.cs
/// <summary>
/// Splits the key into a section part and a key part when the key contais the keydelimiter ':'
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
Splits the key into a section part and a key part when the key contais the keydelimiter ':'
Splits the key into a section part and a key part when the key contais the keydelimiter ' : '
protected (string,string) GetSectionAndKeyName(string key)
        {
            string keyName = key;
            string section = "";
            int index = key.IndexOf(ConfigurationPath.KeyDelimiter);
            if (index >= 0)
            {
                section = key.Substring(0, index);
                keyName = key.Substring(index + ConfigurationPath.KeyDelimiter.Length);
            }
            return (section, keyName);
        }
protected ( string , string ) GetSectionAndKeyName ( string key ) { string keyName = key ; string section = " " ; int index = key . IndexOf ( ConfigurationPath . KeyDelimiter ) ; if ( index >= 0 ) { section = key . Substring ( 0 , index ) ; keyName = key . Substring ( index + ConfigurationPath . KeyDelimiter . Length ) ; } return ( section , keyName ) ; }
Splits the key into a section part and a key part when the key contais the keydelimiter ':'
Splits the key into a section part and a key part when the key contais the keydelimiter ' : '
None
key
string
None