/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcamrdropdownscriteria(ref DataRow row, Icamrdropdownscriteria entity) { row.SetField("reportno", entity.reportno); row.SetField("dropdowntype", entity.dropdowntype); row.SetField("customparam", entity.customparam); row.SetField("userfield", entity.userfield); }
public static Icamrdropdownscriteria BuildIcamrdropdownscriteriaFromRow(DataRow row) { Icamrdropdownscriteria entity = new Icamrdropdownscriteria(); entity.reportno = row.IsNull("reportno") ? 0 : row.Field <int>("reportno"); entity.dropdowntype = row.IsNull("dropdowntype") ? string.Empty : row.Field <string>("dropdowntype"); entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }