心澄欲遣

不践迹,亦不入于室

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

  public static void loadConfigFile()
        {
            ExeConfigurationFileMap file = new ExeConfigurationFileMap();
            file.ExeConfigFilename = Application.StartupPath + "\\PermissionAllocator.exe.config";
            Program.Config = ConfigurationManager.OpenMappedExeConfiguration(file, ConfigurationUserLevel.None);
        }
        public static Configuration Config { get; private set; }

 

  private string createConnectionString()
        {
            return Program.Config.ConnectionStrings.ConnectionStrings["db"].ConnectionString;
        }

posted on 2013-05-22 14:40  心澄欲遣  阅读(443)  评论(0编辑  收藏  举报
欢迎第myspace graphics个访客