Backup/Global.asax.cs

(完整代码) 677B

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using LeaveMessageMVC.MVC.DataBaseControlLayer;
namespace LeaveMessageMVC
{
    public class Global : System.Web.HttpApplication
    {

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

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}

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

AI 解读 AI

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

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