Beispiel #1
0
        private void GetAllCodeValues()
        {
            if (CodeValues.IsLoaded)
            {
                return;
            }

            var cds = (from cd in _dbContext.tbl_pgsb_code_values
                       select new CodeValue
            {
                Code = cd.code,
                CodeValueDesc = cd.code_value_desc,
                CodeValueDisplay = cd.code_value,
                CodeValueType = cd.code_value_type,
                CodeValueId = cd.code_value_id,
                ParentCode = cd.tbl_pgsb_code_values2.code,
                ParentCodeValueType = cd.tbl_pgsb_code_values2.code_value_type,
            }).ToList();

            CodeValues.SetCodeValues(cds);
        }