Hidistro.Entities/Commodities/BrandCategoryInfo.cs
(完整代码) 2KBnamespace Hidistro.Entities.Commodities
{
using Hidistro.Core;
using Hishop.Components.Validation;
using Hishop.Components.Validation.Validators;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class BrandCategoryInfo
{
private IList<int> productTypes;
public int BrandId { get; set; }
[StringLengthValidator(1, 30, Ruleset="ValBrandCategory", MessageTemplate="品牌名称不能为空,长度限制在30个字符以内")]
public string BrandName { get; set; }
[RegexValidator("^(http)://.*", Ruleset="ValBrandCategory"), ValidatorComposition(CompositionType.Or, Ruleset="ValBrandCategory", MessageTemplate="品牌官方网站的网址必须以http://开头,长度限制在100个字符以内"), NotNullValidator(Negated=true, Ruleset="ValBrandCategory")]
public string CompanyUrl { get; set; }
[StringLengthValidator(0, 300, Ruleset="ValBrandCategory", MessageTemplate="品牌介绍不能为空,品牌介绍的长度限制在300个字符以内")]
public string Description { get; set; }
public int DisplaySequence { get; set; }
public string Logo { get; set; }
[StringLengthValidator(0, 100, Ruleset="ValCategory", MessageTemplate="让用户可以通过搜索引擎搜索到此分类的浏览页面,长度限制在100个字符以内"), HtmlCoding]
public string MetaDescription { get; set; }
[StringLengthValidator(0, 100, Ruleset="ValCategory", MessageTemplate="让用户可以通过搜索引擎搜索到此分类的浏览页面,长度限制在100个字符以内"), HtmlCoding]
public string MetaKeywords { get; set; }
public IList<int> ProductTypes
{
get
{
if (this.productTypes == null)
{
this.productTypes = new List<int>();
}
return this.productTypes;
}
set
{
this.productTypes = value;
}
}
public string RewriteName { get; set; }
public string Theme { get; set; }
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
