using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Blog.Core.Model.Models
{
///
/// 菜单类
///
public class Module
{
public Module()
{
this.ChildModule = new List();
this.ModulePermission = new List();
this.RoleModulePermission = new List();
}
public int Id { get; set; }
///
///获取或设置是否禁用,逻辑上的删除,非物理删除
///
public bool? IsDeleted { get; set; }
///
/// 父ID
///
public int? ParentId { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 菜单链接地址
///
public string LinkUrl { get; set; }
///
/// 区域名称
///
public string Area { get; set; }
///
/// 控制器名称
///
public string Controller { get; set; }
///
/// Action名称
///
public string Action { get; set; }
///
/// 图标
///
public string Icon { get; set; }
///
/// 菜单编号
///
public string Code { get; set; }
///
/// 排序
///
public int OrderSort { get; set; }
///
/// /描述
///
public string Description { get; set; }
///
/// 是否是右侧菜单
///
public bool IsMenu { get; set; }
///
/// 是否激活
///
public bool Enabled { get; set; }
///
/// 创建ID
///
public int? CreateId { get; set; }
///
/// 创建者
///
public string CreateBy { get; set; }
///
/// 创建时间
///
public DateTime? CreateTime { get; set; }
///
/// 修改ID
///
public int? ModifyId { get; set; }
///
/// 修改者
///
public string ModifyBy { get; set; }
///
/// 修改时间
///
public DateTime? ModifyTime { get; set; }
public virtual Module ParentModule { get; set; }
public virtual ICollection ChildModule { get; set; }
public virtual ICollection ModulePermission { get; set; }
public virtual ICollection RoleModulePermission { get; set; }
}
}