/// <summary> /// Gets the physical file name from the specified <see cref="DbConnectionStringBuilder"/>, if present. /// </summary> /// <param name="value">The <see cref="DbConnectionStringBuilder"/> to extract the physical file name from.</param> /// <returns> /// The name of the physical file name present in <paramref name="value"/>, if any; otherwise <see langword="null"/>. /// </returns> /// <exception cref="ArgumentNullException"> /// <paramref name="value"/> is <see langword="null"/>. /// </exception> public static string GetPhysicalFileName(this DbConnectionStringBuilder value) => value.ExtractStringValueFromConnectionString(AttachDBFilenameKeywordName);
/// <summary> /// Gets the Initial Catalog name from the specified <see cref="DbConnectionStringBuilder"/>, if present. /// </summary> /// <param name="value">The <see cref="DbConnectionStringBuilder"/> to extract the Initial Catalog name from.</param> /// <returns> /// The name of the Initial Catalog present in <paramref name="value"/>, if any; otherwise <see langword="null"/>. /// </returns> /// <exception cref="ArgumentNullException"> /// <paramref name="value"/> is <see langword="null"/>. /// </exception> public static string GetInitialCatalogName(this DbConnectionStringBuilder value) => value.ExtractStringValueFromConnectionString(InitialCatalogKeywordName);