v9.6.2017.0808   重构正向工程,基于映射表查找数据库字段类型到实体类型的映射
大石头 authored at 2017-08-08 21:38:06
750.00 B
X
using System.ComponentModel;
using System.Web.Mvc;
using NewLife.Log;
using XCode.Membership;

namespace NewLife.Cube.Admin
{
    /// <summary>权限管理区域注册</summary>
    [DisplayName("管理平台")]
    public class AdminAreaRegistration : AreaRegistrationBase
    {
        /// <summary>注册区域</summary>
        /// <param name="context"></param>
        public override void RegisterArea(AreaRegistrationContext context)
        {
            base.RegisterArea(context);

            context.Routes.IgnoreRoute("bootstrap/{*relpath}");

            // 自动检查并添加菜单
            XTrace.WriteLine("初始化权限管理体系");
            var user = ManageProvider.User;
        }
    }
}