using Umbraco.Extensions;
namespace Umbraco.Cms.Core.Configuration.Models;
///
/// Represents a single connection string.
///
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.
///
///
/// The name.
///
[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; }
}