コード例 #1
0
ファイル: HomeController.cs プロジェクト: wtang2006/SpiderWeb
 protected override void Initialize(System.Web.Routing.RequestContext requestContext)
 {
     base.Initialize(requestContext);
     this.dbContext = ContextFactory.GetContextPerRequest();
     fileManager.setDBContext(this.dbContext);
     patientManager = new PatientInfoManager(fileManager, db, dbContext);
     patientManager.setData(data);
     patientManager.setPropertyFile(System.Configuration.ConfigurationManager.AppSettings["PropertyFile"]);
     utilManager = new UtilManager(data);
     ViewBag.BasePath = System.Configuration.ConfigurationManager.AppSettings["SiteName"];
     ViewBag.HostName = System.Environment.MachineName;
    
   
 }