Global.asax.cs

(完整代码) 1KB

using LeaveMessageMVC.MVC.DataBaseControlLayer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace LeaveMessageMVC
{
    public class Global : System.Web.HttpApplication
    {
        public Global()
        {
            
        }


        protected void Application_Start(object sender, EventArgs e)
        {
            //因为以下赋值只发生在“应用程序启动时”,所以如果人工删除DB内的数据,可能会造成“楼数”不准
            var op = DBControl.TableCount();
            Application["TableCount"] = DBControl.TableCount();
        }

       

        protected void Application_End(object sender, EventArgs e)
        {

        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

      
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。