src/ZKEACMS.SectionWidget/Models/SectionContentCallToAction.cs
(完整代码) 1KB/* http://www.zkea.net/
* Copyright (c) ZKEASOFT. All rights reserved.
* http://www.zkea.net/licenses */
using System;
using Easy.MetaData;
using System.ComponentModel.DataAnnotations.Schema;
using ZKEACMS.Extend;
using Easy.RepositoryPattern;
namespace ZKEACMS.SectionWidget.Models
{
[DataTable("SectionContentCallToAction")]
public class SectionContentCallToAction : SectionContentBasic
{
public string InnerText { get; set; }
public string Href { get; set; }
[NotMapped]
public override int SectionContentType
{
get
{
return (int)Types.CallToAction;
}
}
}
class SectionContentCallToActionMetaData : ViewMetaData<SectionContentCallToAction>
{
protected override void ViewConfigure()
{
ViewConfig(m => m.InnerText).AsTextBox().Required();
ViewConfig(m => m.Href).AsTextBox().Required().PageSelector();
ViewConfig(m => m.ID).AsHidden();
ViewConfig(m => m.Title).AsHidden();
ViewConfig(m => m.SectionContentType).AsHidden();
ViewConfig(m => m.Order).AsHidden();
ViewConfig(m => m.SectionGroupId).AsHidden();
ViewConfig(m => m.SectionWidgetId).AsHidden();
ViewConfig(m => m.Status).AsHidden();
ViewConfig(m => m.Description).AsHidden();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。