
using PageAdmin.BLL;
using PageAdmin.Common;
using PageAdmin.ORM;
using PageAdmin.Utils;
using System;
using System.Web.Mvc;

namespace PageAdmin.Web.Areas.Admin.Controllers
{

    /// <summary>
    /// 自定义数据的基类
    /// </summary>
    public class CustomDataBaseController : DefaultBaseController
    {
        protected string Table;
        protected int TableId;
        public CustomDataBaseController(string table, string directory = "") : base(table, directory)
        {
            if (table == "")
            {
                table = System.Web.HttpContext.Current.Request.QueryString["table"];
                base.MvcContext.Table = table;
                if (!StringHelper.IsStr(table))
                {
                    throw new Exception("无效的table参数!");
                }
            }
        }



    }
}