Пример #1
0
        public OutputManager(RunSettings rs, DBConnParams dbParams, List <int> contNos, int scenStart)
        {
            RSettings = rs;
            DbParams  = dbParams;

            // 향후 결과 입력시 사용 : dic<contno, idx> : 계약번호로 인덱스를 찾기위해
            PolNoMatching = new Dictionary <int, int>();
            for (int i = 0; i < contNos.Count(); i++)
            {
                PolNoMatching.Add(contNos[i], i);
            }

            // 향후 결과 입력시 사용 : 시나리오 시작점
            StartScenNo = scenStart;

            InitializeOutputSpace();

            SetGroupingFunction();
        }
Пример #2
0
        public MsSqlDbConn(DBConnParams dp)
        {
            ConnStr = $@"server = {dp.ServerName}; uid = {dp.ServerID}; pwd = {dp.ServerPW}; database = {dp.DbName}; Connect Timeout=300;";

            //ConnStr = $@"Data Source = {dp.DbName}; Initial Catalog = {dp.ServerName}; User ID = {dp.ServerID}; Password = {dp.ServerPW};";
        }
Пример #3
0
 public MySqlDBConn(DBConnParams dp)
 {
     ConnStr = string.Format("server={0};uid={1};pwd={2};database={3};charset=utf8;", dp.ServerName, dp.ServerID, dp.ServerPW, dp.DbName);
 }