示例#1
0
        public MatchGradeEntity AdaptItem(DataRow rw)
        {
            MatchGradeEntity result = new MatchGradeEntity();

            result.MatchGradeCode  = SafeHelper.GetSafestring(rw["MatchGradeCode"]);
            result.MatchGradeValue = SafeHelper.GetSafestring(rw["MatchGradeValue"]);
            return(result);
        }
示例#2
0
        public List <MatchGradeEntity> Adapt(DataTable dt)
        {
            List <MatchGradeEntity> results = new List <MatchGradeEntity>();

            foreach (DataRow rw in dt.Rows)
            {
                MatchGradeEntity matchGrade = new MatchGradeEntity();
                matchGrade = AdaptItem(rw);
                results.Add(matchGrade);
            }
            return(results);
        }