using iWareCommon.Common.Entity;
using iWareCommon.Utils;
using iWareDataCore.ORM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace iWareDataCore.RBAC.Entity
{
///
/// 菜单权限值对应的实体
///
public class ContentValueEntity : ITreeEntity
{
///
/// 主键
///
public int Id { get; set; }
///
/// 菜单目录名称
///
public string Name { get; set; }
///
/// 菜单目录备注
///
public string Remark { get; set; }
///
/// 菜单目录访问地址
///
public string Url { get; set; }
///
/// 父菜单Id
///
public int ParentId { get; set; }
///
/// 菜单类型
///
public int Type { get; set; }
///
/// 菜单排序
///
public int ContentIndex { get; set; }
///
/// 菜单图标
///
public string Image { get; set; }
///
/// 子菜单
///
public List Children { get; set; }
///
/// 权限值
///
public int Value { get; set; }
///
/// 构造函数
///
public ContentValueEntity() { }
///
/// 构造函数
///
/// ORM中的Content对象
/// 权限值
public ContentValueEntity(RBACContent content, int value)
{
EntityPropHelper.CopyProp(content, this, ContentEntity.GetColumnMap());
this.Children = new List();
this.Value = value;
}
}
}