动态配置并加密App.Config中数据库连接字符串(2…

2008-02-23 07:43:47来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

9
10 private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
11
12 public static Settings Default
13 {
14 get
15 {
16 return defaultInstance;
17 }

18 }

19
20 [global::System.Configuration.ApplicationScopedSettingAttribute()]
21 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
22 [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
23 [global::System.Configuration.DefaultSettingValueAttribute("Data Source=(local);Initial Catalog=Test;Persist Security Info=True;User ID=sa;Password=")]

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇: 一条语句简单解决“每个Y的最新X”的SQL经典问题

下一篇: 2007年百度招聘在线笔试真题解答