Base.cs 1.6 KB

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. using Library;
  3. namespace AppConfig
  4. {
  5. public class Base
  6. {
  7. public static string ApiKey = "G6H7@J8%";
  8. public static string SqlConnStr = ConfigurationManager.AppSettings["SqlConnStr"].ToString();
  9. public static string SourceSqlConnStr = ConfigurationManager.AppSettings["SourceSqlConnStr"].ToString();
  10. public static string RmSourceSqlConnStr = ConfigurationManager.AppSettings["RmSourceSqlConnStr"].ToString();
  11. public static string JavaStatSqlConnStr = ConfigurationManager.AppSettings["JavaStatSqlConnStr"].ToString();
  12. public static string Host = Library.ConfigurationManager.AppSettings["Host"].ToString();
  13. public static string SourceHost = Library.ConfigurationManager.AppSettings["SourceHost"].ToString();
  14. public static string JavaPushHost = Library.ConfigurationManager.AppSettings["JavaPushHost"].ToString();
  15. public static string Database = Library.ConfigurationManager.AppSettings["Database"].ToString();
  16. public static string defaultImage = Library.ConfigurationManager.AppSettings["Host"].ToString() + "/skin/app/default/static/images/default.jpg";
  17. #region 数据库结构
  18. public static Dictionary<string, Dictionary<string, string>> dbTables = new Dictionary<string, Dictionary<string, string>>();
  19. public static Dictionary<string, Dictionary<string, string>> mainTables = new Dictionary<string, Dictionary<string, string>>();
  20. public static Dictionary<string, Dictionary<string, string>> opTables = new Dictionary<string, Dictionary<string, string>>();
  21. #endregion
  22. }
  23. }