using System; using System.Collections.Generic; using System.Linq; using System.Text; //Ref: using System.Configuration; namespace QMAPP.BoraUpgrade.Common { /// /// 配置信息类 /// CreateTime:2018.10.30 /// Author :陈冲 /// Mail :22367340@qq.com /// public class Config { /// /// 主数据库文件 /// public static string maindbConnectionString = ConfigurationManager.ConnectionStrings["maindb"].ToString(); //"Data Source=10.123.4.21;Initial Catalog=ADIENT_QD_MES;User Id=sa;Password=adient708!;";// providerName="System.Data.SqlClient" //public static string a3dbConnectionString = ConfigurationManager.ConnectionStrings["a3db"]?.ToString(); public static string a3dbConnectionString = ConfigurationManager.ConnectionStrings["maindb"]?.ToString(); public static string bzdConnectionString = ConfigurationManager.ConnectionStrings["maindbBZD"].ToString(); //"Data Source=10.123.4.65;Initial Catalog=ADIENT_QD_MES_4;User Id=mes;Password=123u3M12912@2;";// ///// ///// FIS数据库文件(需要在QMAPP.WinForm的App.Config中配置) ///// //public static string maindbMBConnectionString = ConfigurationManager.ConnectionStrings["maindbMB"].ToString(); } }