public static Apeetotlookupcriteria BuildApeetotlookupcriteriaFromRow(DataRow row) { Apeetotlookupcriteria entity = new Apeetotlookupcriteria(); entity.reportnm = row.IsNull("reportnm") ? string.Empty : row.Field <string>("reportnm"); entity.vendno = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromApeetotlookupcriteria(ref DataRow row, Apeetotlookupcriteria entity) { row.SetField("reportnm", entity.reportnm); row.SetField("vendno", entity.vendno); row.SetField("userfield", entity.userfield); }