source/TestCommon/source/FunctionApp.TestCommon/Database/SqlServerConnectionStringProvider.cs
/// <summary>
/// Build a connection string for a database name. Uses <see cref="RuntimeEnvironment.TestCommonConnectionString"/>.
/// If null or empty, it will fallback to use localDb
/// </summary>
/// <param name="databaseName">Name of database</param>
/// <returns>Connection string to a database</returns>
Build a connection string for a database name. Uses .
If null or empty, it will fallback to use localDb
Build a connection string for a database name . Uses . If null or empty it will fallback to use localDb
public string BuildConnectionStringForDatabaseName(string databaseName)
        {
            return
                BuildConnectionStringFromEnvironmentVariable(_environment, databaseName) ??
                BuildConnectionStringForLocalDb(databaseName);
        }
public string BuildConnectionStringForDatabaseName ( string databaseName ) { return BuildConnectionStringFromEnvironmentVariable ( _environment , databaseName ) ?? BuildConnectionStringForLocalDb ( databaseName ) ; }
Build a connection string for a database name.
Build a connection string for a database name .
Connection string to a database
Connection string to a database
databaseName
string
Name of database
Name of database