src/ZKEACMS/Page/PageEntity.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* http://www.zkea.net/
* Copyright (c) ZKEASOFT. All rights reserved.
* http://www.zkea.net/licenses */
using System;
using System.Collections.Generic;
using Easy.Constant;
using Easy.Extend;
using Easy.MetaData;
using Easy.Models;
using ZKEACMS.ExtendField;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using Easy.RepositoryPattern;
namespace ZKEACMS.Page
{
[DataTable("CMS_Page")]
public class PageEntity : EditorEntity
{
public PageEntity()
{
Styles = new List<PageAsset>();
Scripts = new List<PageAsset>();
}
[Key]
public string ID { get; set; }
public string ReferencePageID { get; set; }
public bool IsPublishedPage { get; set; }
public string ParentId { get; set; }
public string Url { get; set; }
private string _pageUrl;
[NotMapped]
public string PageUrl
{
get
{
if (_pageUrl.IsNotNullAndWhiteSpace()) return _pageUrl;
if (!Url.IsNullOrEmpty())
{
return Url.Substring(Url.LastIndexOf("/") + 1, Url.Length - Url.LastIndexOf("/") - 1);
}
return Url;
}
set { _pageUrl = value; }
}
public int? DisplayOrder { get; set; }
public string LayoutId { get; set; }
public string PageName { get; set; }
public string Content { get; set; }
public string MetaKeyWorlds { get; set; }
public string MetaDescription { get; set; }
public string Script { get; set; }
public string Style { get; set; }
public bool IsHomePage { get; set; }
public DateTime? PublishDate { get; set; }
public bool IsPublish { get; set; }
[NotMapped]
public string Favicon { get; set; }
后面还有 49 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。