src/ZKEACMS/Layout/LayoutEntity.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* http://www.zkea.net/
* Copyright (c) ZKEASOFT. All rights reserved.
* http://www.zkea.net/licenses */
using Easy.MetaData;
using Easy.Models;
using Easy.RepositoryPattern;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ZKEACMS.Extend;
using ZKEACMS.Filter;
using ZKEACMS.Page;
using ZKEACMS.Theme;
using ZKEACMS.Widget;
using ZKEACMS.Zone;
namespace ZKEACMS.Layout
{
[DataTable("CMS_Layout")]
public class LayoutEntity : EditorEntity, IImage
{
public const string DefaultThumbnial = "~/images/layout.jpg";
[Key]
public string ID { get; set; }
public string LayoutName { get; set; }
public string ContainerClass { get; set; }
public string Script { get; set; }
public string Style { get; set; }
[NotMapped]
public ZoneCollection Zones { get; set; }
[NotMapped]
public ZoneWidgetCollection ZoneWidgets { get; set; }
[NotMapped]
public LayoutHtmlCollection Html { get; set; }
[NotMapped]
public PageEntity Page { get; set; }
[NotMapped]
public PageEntity PreViewPage { get; set; }
public string ImageUrl { get; set; }
public string ImageThumbUrl { get; set; }
[NotMapped]
public ThemeEntity CurrentTheme { get; set; }
[NotMapped]
public string Layout { get; set; }
[NotMapped]
public IEnumerable<WidgetBasePart> Templates { get; set; }
}
class LayoutEntityMetaData : ViewMetaData<LayoutEntity>
{
protected override void ViewConfigure()
{
ViewConfig(m => m.ID).AsHidden();
ViewConfig(m => m.Layout).AsHidden();
后面还有 18 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。