Webiant Logo Webiant Logo
  1. No results found.

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

SpecificationAttributeModel.cs

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 specification attribute model
/// 
public partial record SpecificationAttributeModel : BaseNopEntityModel, ILocalizedModel
{
    #region Ctor

    public SpecificationAttributeModel()
    {
        AvailableGroups = new List();
        Locales = new List();
        SpecificationAttributeOptionSearchModel = new SpecificationAttributeOptionSearchModel();
        SpecificationAttributeProductSearchModel = new SpecificationAttributeProductSearchModel();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Catalog.Attributes.SpecificationAttributes.SpecificationAttribute.Fields.Name")]
    public string Name { get; set; }

    [NopResourceDisplayName("Admin.Catalog.Attributes.SpecificationAttributes.SpecificationAttribute.Fields.DisplayOrder")]
    public int DisplayOrder { get; set; }

    [NopResourceDisplayName("Admin.Catalog.Attributes.SpecificationAttributes.SpecificationAttribute.Fields.SpecificationAttributeGroup")]
    public int? SpecificationAttributeGroupId { get; set; }

    public IList AvailableGroups { get; set; }

    public IList Locales { get; set; }

    public SpecificationAttributeOptionSearchModel SpecificationAttributeOptionSearchModel { get; set; }

    public SpecificationAttributeProductSearchModel SpecificationAttributeProductSearchModel { get; set; }

    #endregion
}