internal List<CodeDto> query(string type, string parentValue)
 {
     Dao.DesignPatternEntities entity = new DesignPatternEntities();
     var codes = (from c in entity.Code
                  where c.CodeType.Equals(type) && c.Code2.CodeValue.Equals(parentValue)
                  orderby c.Id
                  select new CodeDto() { CodeValue = c.CodeValue, CodeText = c.CodeText }).ToList();
     return codes;
 }
示例#2
0
        internal List <CodeDto> query(string type, string parentValue)
        {
            Dao.DesignPatternEntities entity = new DesignPatternEntities();
            var codes = (from c in entity.Code
                         where c.CodeType.Equals(type) && c.Code2.CodeValue.Equals(parentValue)
                         orderby c.Id
                         select new CodeDto()
            {
                CodeValue = c.CodeValue, CodeText = c.CodeText
            }).ToList();

            return(codes);
        }