Webiant Logo Webiant Logo
  1. No results found.

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

Menu.cs

using Nop.Core.Domain.Common;
using Nop.Core.Domain.Localization;
using Nop.Core.Domain.Security;
using Nop.Core.Domain.Stores;

namespace Nop.Core.Domain.Menus;

/// 
/// Represents the menu
/// 
public partial class Menu : BaseEntity, IAclSupported, IStoreMappingSupported, ISoftDeletedEntity, ILocalizedEntity
{
    /// 
    /// Gets or sets the menu name
    /// 
    public string Name { get; set; }

    /// 
    /// Gets or sets the menu type identifier
    /// 
    public int MenuTypeId { get; set; }

    /// 
    /// Gets or sets the CSS class
    /// 
    public string CssClass { get; set; }

    /// 
    /// Gets or sets the display order
    /// 
    public int DisplayOrder { get; set; }

    /// 
    /// Gets or sets a value indicating whether the menu is published
    /// 
    public bool Published { get; set; }

    /// 
    /// Gets or sets a value indicating whether the menu is subject to ACL
    /// 
    public bool SubjectToAcl { get; set; }

    /// 
    /// Gets or sets a value indicating whether the menu is limited/restricted to certain stores
    /// 
    public bool LimitedToStores { get; set; }

    /// 
    /// Gets or sets a value indicating whether the menu has been deleted
    /// 
    public bool Deleted { get; set; }

    /// 
    /// Gets or sets a value indicating whether all categories should be automatically loaded 
    /// 
    public bool DisplayAllCategories { get; set; }

    /// 
    /// Gets or sets the menu type
    /// 
    public MenuType MenuType
    {
        get => (MenuType)MenuTypeId;
        set => MenuTypeId = (int)value;
    }
}