using System; using System.Configuration; using System.ComponentModel; namespace Yavsc.Model.Blogs.Configuration { /// /// Blog provider configuration element. /// public class BlogProviderConfigurationElement : ConfigurationElement { /// /// Gets or sets the name. /// /// The name. [ConfigurationProperty("name", IsRequired = true, IsKey=true)] public string Name { get { return (string)this ["name"]; } set { this ["name"] = value; } } /// /// Gets or sets the type. /// /// The type. [ConfigurationProperty("type", IsRequired = true, IsKey=false)] public string Type { get { return (string)this ["type"]; } set { this ["type"] = value; } } /// /// Gets or sets the name of the connection string. /// /// The name of the connection string. [ConfigurationProperty("connectionStringName")] public string ConnectionStringName { get { return (string)this ["connectionStringName"]; } set { this ["connectionStringName"] = value; } } /// /// Gets or sets the description. /// /// The description. [ConfigurationProperty("description")] public string Description { get { return (string)this ["description"]; } set { this ["description"] = value; } } /// /// Gets or sets the name of the application. /// /// The name of the application. [ConfigurationProperty("applicationName")] public string ApplicationName { get { return (string)this ["applicationName"]; } set { this ["applicationName"] = value; } } } }