Beispiel #1
0
        private void UpdateFor1006()
        {
            //version 1.0.6.r1 update
            AppVersioningSetup appVersion = new AppVersioningSetup()
            {
                Major           = 1,
                Minor           = 0,
                Patch           = 0,
                ReleaseVersion  = "6",
                DateTimeApplied = DateTime.Now,
                Remarks         = ResourcesUtils.GetMessage("app_ver_1006_remarks")
            };
            AppVersioning appVersionInDB = AppVersioningDaoObj.GetVersion(appVersion);

            if (appVersionInDB == null)
            {
                RaiseNewEntryEvent(appVersion);
                LotterySequenceGeneratorSetup genModel = new LotterySequenceGeneratorSetup();
                genModel.SeqGenCode  = (int)GeneratorType.LOTTO_MATCH_COUNT_PREDICTION_FAST_TREE_REGRESSION;
                genModel.Description = ResourcesUtils.GetMessage("app_ver_1006_pick_gen_desc");
                lotteryDataServicesObj.InsertLotterySequenceGenerator(genModel);
                AppVersioningDaoObj.InsertAppVersioning(appVersion);
            }
            else
            {
                RaiseSkippedVersionEvent(appVersion);
            }
        }