/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcamumassupdatedropdowns(ref DataRow row, Icamumassupdatedropdowns entity) { row.SetField("dropdowntype", entity.dropdowntype); row.SetField("codeval", entity.codeval); row.SetField("codedesc", entity.codedesc); row.SetField("userfield", entity.userfield); }
public static Icamumassupdatedropdowns BuildIcamumassupdatedropdownsFromRow(DataRow row) { Icamumassupdatedropdowns entity = new Icamumassupdatedropdowns(); 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); }