2016-11-05 23:15:07 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2016-10-21 16:35:26 +08:00
|
|
|
|
namespace Bootstrap.DataAccess
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Menu
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2016-10-25 17:07:24 +08:00
|
|
|
|
/// 获得/设置 菜单主键ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int ID { set; get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 父级菜单ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int ParentId { set; get; }
|
|
|
|
|
/// <summary>
|
2016-11-06 00:48:08 +08:00
|
|
|
|
/// 获得/设置 父级菜单名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ParentName { get; set; }
|
|
|
|
|
/// <summary>
|
2016-10-25 17:07:24 +08:00
|
|
|
|
/// 获得/设置 菜单名称
|
2016-10-21 16:35:26 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
/// <summary>
|
2016-10-25 17:07:24 +08:00
|
|
|
|
/// 获得/设置 菜单序号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 菜单图标
|
2016-10-21 16:35:26 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string Icon { get; set; }
|
|
|
|
|
/// <summary>
|
2016-10-25 17:07:24 +08:00
|
|
|
|
/// 获得/设置 菜单URL地址
|
2016-10-21 16:35:26 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string Url { get; set; }
|
|
|
|
|
/// <summary>
|
2016-10-25 17:07:24 +08:00
|
|
|
|
/// 获得/设置 菜单分类
|
|
|
|
|
/// </summary>
|
2016-10-28 15:51:08 +08:00
|
|
|
|
public string Category { get; set; }
|
2016-10-25 17:07:24 +08:00
|
|
|
|
/// <summary>
|
2016-11-03 21:29:32 +08:00
|
|
|
|
/// 获得 菜单分类名称,取字典表中的Name category="菜单"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string CategoryName { get; set; }
|
|
|
|
|
/// <summary>
|
2016-10-26 14:02:40 +08:00
|
|
|
|
/// 获得/设置 是否当前被选中 active为选中
|
2016-10-21 16:35:26 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string Active { get; set; }
|
2016-11-05 23:15:07 +08:00
|
|
|
|
/// <summary>
|
2016-11-24 20:58:47 +08:00
|
|
|
|
/// 获得/设置 链接目标
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Target { get; set; }
|
|
|
|
|
/// <summary>
|
2016-11-05 23:15:07 +08:00
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<Menu> Menus { get; set; }
|
2016-10-21 16:35:26 +08:00
|
|
|
|
}
|
|
|
|
|
}
|