/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcamrdropdownsresults(ref DataRow row, Icamrdropdownsresults entity) { row.SetField("dropdowntype", entity.dropdowntype); row.SetField("codeval", entity.codeval); row.SetField("codedesc", entity.codedesc); row.SetField("userfield", entity.userfield); }
public static Icamrdropdownsresults BuildIcamrdropdownsresultsFromRow(DataRow row) { Icamrdropdownsresults entity = new Icamrdropdownsresults(); entity.dropdowntype = row.IsNull("dropdowntype") ? string.Empty : row.Field <string>("dropdowntype"); entity.codeval = row.IsNull("codeval") ? string.Empty : row.Field <string>("codeval"); entity.codedesc = row.IsNull("codedesc") ? string.Empty : row.Field <string>("codedesc"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }