Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Setting.cs

using Nop.Core.Domain.Localization;

namespace Nop.Core.Domain.Configuration;

/// 
/// Represents a setting
/// 
public partial class Setting : BaseEntity, ILocalizedEntity
{
    public Setting()
    {
    }

    /// 
    /// Ctor
    /// 
    /// Name
    /// Value
    /// Store identifier
    public Setting(string name, string value, int storeId = 0)
    {
        Name = name;
        Value = value;
        StoreId = storeId;
    }

    /// 
    /// Gets or sets the name
    /// 
    public string Name { get; set; }

    /// 
    /// Gets or sets the value
    /// 
    public string Value { get; set; }

    /// 
    /// Gets or sets the store for which this setting is valid. 0 is set when the setting is for all stores
    /// 
    public int StoreId { get; set; }

    /// 
    /// To string
    /// 
    /// Result
    public override string ToString()
    {
        return Name;
    }
}