1234567891011121314151617181920212223242526 |
- using System.Collections.Generic;
- using Library;
- namespace AppConfig
- {
- public class Base
- {
- public static string ApiKey = "G6H7@J8%";
- public static string Host = Library.ConfigurationManager.AppSettings["Host"].ToString();
- public static string Host2 = Library.ConfigurationManager.AppSettings["Host2"].ToString();
- public static string Database = Library.ConfigurationManager.AppSettings["Database"].ToString();
- public static string defaultImage = Library.ConfigurationManager.AppSettings["Host"].ToString() + "/skin/app/default/static/images/default.jpg";
-
- public static string BsSqlConnStr = Library.ConfigurationManager.AppSettings["BsSqlConnStr"].ToString();
- public static string SqlConnStr = Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString();
- public static string SqlConnStr2 = Library.ConfigurationManager.AppSettings["SqlConnStr2"].ToString();
- public static string StatConnRds = Library.ConfigurationManager.AppSettings["StatSqlConnStr"].ToString();
- #region 数据库结构
- public static Dictionary<string, Dictionary<string, string>> mainTables = new Dictionary<string, Dictionary<string, string>>();
- public static Dictionary<string, Dictionary<string, string>> main2Tables = new Dictionary<string, Dictionary<string, string>>();
- public static Dictionary<string, Dictionary<string, string>> statTables = new Dictionary<string, Dictionary<string, string>>();
- public static Dictionary<string, Dictionary<string, string>> bsTables = new Dictionary<string, Dictionary<string, string>>();
- #endregion
- }
- }
|