public List <AutoAcceptanceCriteriaDetail> Adapt(DataTable dt) { List <AutoAcceptanceCriteriaDetail> results = new List <AutoAcceptanceCriteriaDetail>(); foreach (DataRow rw in dt.Rows) { AutoAcceptanceCriteriaDetail cust = new AutoAcceptanceCriteriaDetail(); cust = AdaptItemCriteriaDetail(rw); results.Add(cust); } return(results); }
public AutoAcceptanceCriteriaDetail AdaptItemCriteriaDetail(DataRow rw) { AutoAcceptanceCriteriaDetail result = new AutoAcceptanceCriteriaDetail(); result.CriteriaId = SafeHelper.GetSafeint(rw["CriteriaId"]); result.ConfidenceCode = SafeHelper.GetSafeint(rw["ConfidenceCode"]); result.MatchGrade = SafeHelper.GetSafestring(rw["MatchGrade"]); result.MDPCode = SafeHelper.GetSafestring(rw["MDPCode"]); result.Tag = SafeHelper.GetSafestring(rw["Tag"]); result.CriteriaGroupId = SafeHelper.GetSafeint(rw["CriteriaGroupId"]); return(result); }