src/EntityFramework/Infrastructure/DbConnectionInfo.cs
// <summary>
// Gets the connection information represented by this instance.
// </summary>
// <param name="config"> Configuration to use if connection comes from the configuration file. </param>
Gets the connection information represented by this instance.
Gets the connection information represented by this instance .
internal ConnectionStringSettings GetConnectionString(AppConfig config)
        {
            DebugCheck.NotNull(config);
            if (_connectionName != null)
            {
                var result = config.GetConnectionString(_connectionName);
                if (result == null)
                {
                    throw Error.DbConnectionInfo_ConnectionStringNotFound(_connectionName);
                }
                return result;
            }
            return new ConnectionStringSettings(null, _connectionString, _providerInvariantName);
        }
internal ConnectionStringSettings GetConnectionString ( AppConfig config ) { DebugCheck . NotNull ( config ) ; if ( _connectionName != null ) { var result = config . GetConnectionString ( _connectionName ) ; if ( result == null ) { throw Error . DbConnectionInfo_ConnectionStringNotFound ( _connectionName ) ; } return result ; } return new ConnectionStringSettings ( null , _connectionString , _providerInvariantName ) ; }
Gets the connection information represented by this instance.
Gets the connection information represented by this instance .
config
AppConfig
Configuration to use if connection comes from the configuration file.
Configuration to use if connection comes from the configuration file .