src/ZKEACMS.SectionWidget/Models/SectionContent.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/* http://www.zkea.net/ 
 * Copyright (c) ZKEASOFT. All rights reserved. 
 * http://www.zkea.net/licenses */

using System;
using Easy.MetaData;
using Easy.Models;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using Easy.RepositoryPattern;

namespace ZKEACMS.SectionWidget.Models
{

    public abstract class SectionContentBase : EditorEntity
    {

        public enum Types
        {
            None = 0,
            CallToAction = 1,
            Image = 2,
            Paragraph = 3,
            Title = 4,
            Video = 5
        }
        [Key]
        public string ID { get; set; }
        public string SectionWidgetId { get; set; }
        public virtual string SectionGroupId { get; set; }
        public virtual int? Order { get; set; }
        public abstract int SectionContentType
        {
            get;
            set;
        }
    }

    public class SectionContent : SectionContentBase
    {
        public override int SectionContentType
        {
            get;
            set;
        }

        public SectionContent InitContent(SectionContent content)
        {
            if (content != null)
            {
                content.SectionWidgetId = SectionWidgetId;
                content.SectionGroupId = SectionGroupId;
                content.Order = Order;
            }
            return content;
        }
        [NotMapped]
        public override string Description { get; set; }
        [NotMapped]
        public override int? Status { get; set; }
后面还有 69 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。