using Umbraco.Extensions;
namespace Umbraco.Cms.Core.Configuration.Models;
/// <summary>
/// Represents a single connection string.
/// </summary>
public class ConnectionStrings // TODO: Rename to [Umbraco]ConnectionString (since v10 this only contains a single connection string)
{
/// The default provider name when not present in configuration.
public const string DefaultProviderName = "Microsoft.Data.SqlClient";
/// The DataDirectory placeholder.
public const string DataDirectoryPlaceholder = ConfigurationExtensions.DataDirectoryPlaceholder;
/// The postfix used to identify a connection strings provider setting.
public const string ProviderNamePostfix = ConfigurationExtensions.ProviderNamePostfix;
/// Gets or sets the name.
/// <value>
/// The name.
/// </value>
[Obsolete("This property will be removed in Umbraco 12, because this class is now using named options.")]
public string? Name { get; set; }
/// Gets or sets the connection string.
/// The connection string.
public string? ConnectionString { get; set; }
/// Gets or sets the name of the provider.
/// The name of the provider.
public string? ProviderName { get; set; }
}