Hidistro.Entities/Commodities/AttributeInfo.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.Entities.Commodities
{
using Hishop.Components.Validation.Validators;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class AttributeInfo
{
private IList<AttributeValueInfo> attributeValues;
public int AttributeId { get; set; }
[StringLengthValidator(1, 30, Ruleset="ValAttribute", MessageTemplate="扩展属性的名称,长度在1至30个字符之间")]
public string AttributeName { get; set; }
public IList<AttributeValueInfo> AttributeValues
{
get
{
if (this.attributeValues == null)
{
this.attributeValues = new List<AttributeValueInfo>();
}
return this.attributeValues;
}
set
{
this.attributeValues = value;
}
}
public int DisplaySequence { get; set; }
public bool IsMultiView
{
get
{
return (this.UsageMode == AttributeUseageMode.MultiView);
}
}
public int TypeId { get; set; }
public string TypeName { get; set; }
public AttributeUseageMode UsageMode { get; set; }
public bool UseAttributeImage { get; set; }
public string ValuesString
{
get
{
string str = string.Empty;
foreach (AttributeValueInfo info in this.AttributeValues)
{
str = str + info.ValueStr + ",";
}
if (str.Length > 0)
后面还有 9 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
