Driver/SpannerDBDriver.cs
/// <summary>
/// Constructs a valid connection string from the ConnectionElements specified in this driver instance.
/// </summary>
/// <param name="connectionElementsToUse">The connection elements to use when producing the connection string</param>
/// <returns>
/// A valid connection string which is usable to connect to the database to work with.
/// </returns>
Constructs a valid connection string from the ConnectionElements specified in this driver instance.
Constructs a valid connection string from the ConnectionElements specified in this driver instance .
public override string ConstructConnectionString(Dictionary<ConnectionElement, string> connectionElementsToUse)
		{
			return string.Format("Data Source=projects/{0}/instances/{1}/databases/{2};EnableGetSchemaTable=true", connectionElementsToUse.GetValue(ConnectionElement.ProjectID) ?? string.Empty,
																						 connectionElementsToUse.GetValue(ConnectionElement.InstanceID) ?? string.Empty, 
																						 connectionElementsToUse.GetValue(ConnectionElement.CatalogName) ?? string.Empty);
		}
public override string ConstructConnectionString ( Dictionary < ConnectionElement , string > connectionElementsToUse ) { return string . Format ( " " , connectionElementsToUse . GetValue ( ConnectionElement . ProjectID ) ?? string . Empty , connectionElementsToUse . GetValue ( ConnectionElement . InstanceID ) ?? string . Empty , connectionElementsToUse . GetValue ( ConnectionElement . CatalogName ) ?? string . Empty ) ; }
Constructs a valid connection string from the ConnectionElements specified in this driver instance.
Constructs a valid connection string from the ConnectionElements specified in this driver instance .
A valid connection string which is usable to connect to the database to work with.
A valid connection string which is usable to connect to the database to work with .
connectionElementsToUse
Dictionary<ConnectionElement, string>
The connection elements to use when producing the connection string
The connection elements to use when producing the connection string