Try your search with a different keyword or use * as a wildcard.
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;
namespace Nop.Web.Areas.Admin.Models.Catalog;
///
/// Represents a category model
///
public partial record CategoryModel : BaseNopEntityModel, IAclSupportedModel, IDiscountSupportedModel,
ILocalizedModel, IStoreMappingSupportedModel
{
#region Ctor
public CategoryModel()
{
if (PageSize < 1)
{
PageSize = 5;
}
Locales = new List();
AvailableCategoryTemplates = new List();
AvailableCategories = new List();
AvailableDiscounts = new List();
SelectedDiscountIds = new List();
SelectedCustomerRoleIds = new List();
AvailableCustomerRoles = new List();
SelectedStoreIds = new List();
AvailableStores = new List();
CategoryProductSearchModel = new CategoryProductSearchModel();
}
#endregion
#region Properties
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Name")]
public string Name { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Description")]
public string Description { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.CategoryTemplate")]
public int CategoryTemplateId { get; set; }
public IList AvailableCategoryTemplates { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.MetaKeywords")]
public string MetaKeywords { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.MetaDescription")]
public string MetaDescription { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.MetaTitle")]
public string MetaTitle { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.SeName")]
public string SeName { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Parent")]
public int ParentCategoryId { get; set; }
[UIHint("Picture")]
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Picture")]
public int PictureId { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.PageSize")]
public int PageSize { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.AllowCustomersToSelectPageSize")]
public bool AllowCustomersToSelectPageSize { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.PageSizeOptions")]
public string PageSizeOptions { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.PriceRangeFiltering")]
public bool PriceRangeFiltering { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.PriceFrom")]
public decimal PriceFrom { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.PriceTo")]
public decimal PriceTo { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.ManuallyPriceRange")]
public bool ManuallyPriceRange { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.ShowOnHomepage")]
public bool ShowOnHomepage { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.IncludeInTopMenu")]
public bool IncludeInTopMenu { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Published")]
public bool Published { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Deleted")]
public bool Deleted { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.DisplayOrder")]
public int DisplayOrder { get; set; }
public IList Locales { get; set; }
public string Breadcrumb { get; set; }
//ACL (customer roles)
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.AclCustomerRoles")]
public IList SelectedCustomerRoleIds { get; set; }
public IList AvailableCustomerRoles { get; set; }
//store mapping
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.LimitedToStores")]
public IList SelectedStoreIds { get; set; }
public IList AvailableStores { get; set; }
public IList AvailableCategories { get; set; }
//discounts
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Discounts")]
public IList SelectedDiscountIds { get; set; }
public IList AvailableDiscounts { get; set; }
public CategoryProductSearchModel CategoryProductSearchModel { get; set; }
public string PrimaryStoreCurrencyCode { get; set; }
#endregion
}
public partial record CategoryLocalizedModel : ILocalizedLocaleModel
{
public int LanguageId { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Name")]
public string Name { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.Description")]
public string Description { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.MetaKeywords")]
public string MetaKeywords { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.MetaDescription")]
public string MetaDescription { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.MetaTitle")]
public string MetaTitle { get; set; }
[NopResourceDisplayName("Admin.Catalog.Categories.Fields.SeName")]
public string SeName { get; set; }
}