Model/Channel.cs

(开头部分) 2KB

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

using System.ComponentModel.DataAnnotations;

namespace Kscor.Model
{
    public class Channel
    {
        [Key]
        public int ID { get; set; }


        [Required]
        [Display(Name = "栏目名")]
        [StringLength(20)]
        public string Name { get; set; }

        [Required]
        [Display(Name = "英文简写")]
        [StringLength(100)]
        public string Filename { get; set; }

        [Required]
        [Display(Name = "排序号")]
        public int Sortid { get; set; }

        [Required]
        [Display(Name = "父级ID号")]
        public int Parentid { get; set; }

        [Required]
        [Display(Name = "导航树路径")]
        [StringLength(100)]
        public string Treelist { get; set; }

        [Required]
        [Display(Name = "导航树深度")]
        public int Depth { get; set; }

        [Required]
        [Display(Name = "是否在头部显示")]
        public bool Showintop { get; set; }

        [Required]
        [Display(Name = "是否在底部显示")]
        public bool Showinbottom { get; set; }


        //1可评论,0不可评论
        [Required]
        [Display(Name = "是否可评论")]
        public int State { get; set; }


        [Display(Name = "导航链接")]
        [StringLength(100)]
        public string Url { get; set; }

        [Display(Name = "导航链接目标")]
        [StringLength(100)]
        public string Target { get; set; }

后面还有 37 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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