Beispiel #1
0
        public List <string> GetNumbers(string numberType)
        {
            string   dmTableNameSuffix = numberType.GetDmTableSuffix();
            DmDPCBiz biz = new DmDPCBiz(ConfigHelper.HuN12x3DmTableDmTableConnStringName, dmTableNameSuffix);

            return(biz.GetAll("Id").Select(x => x.Id).ToList());
        }
Beispiel #2
0
        private void LoadData()
        {
            string[] numberTypes = new string[] { "C2", "C3", "Z2", "Z3" };

            DmDPCBiz biz = new DmDPCBiz(ConfigHelper.HuN12x3DmTableDmTableConnStringName, string.Empty);

            foreach (var numberType in numberTypes)
            {
                biz.DataAccessor.TableName = ConfigHelper.GetDmTableName(numberType.GetDmTableSuffix());
                List <DmDPC> list = biz.GetAll("Id", "Number");
                this.FillToDictionary(numberType, list);
            }
        }