抽象工厂

来源:互联网 发布:服装销售数据分析 编辑:程序博客网 时间:2024/04/29 21:43

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace FactorySample
{
    public class Global : System.Web.HttpApplication
    {
        static public System.Data.Common.DbProviderFactory DbProvider;


        protected void Application_Start(object sender, EventArgs e)
        {
            DbProvider = System.Data.SqlClient.SqlClientFactory.Instance;
        }

        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)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}

原创粉丝点击