/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSasttorderoriginlkupresults(ref DataRow row, Sasttorderoriginlkupresults entity) { row.SetField("codeiden", entity.codeiden); row.SetField("codeval", entity.codeval); row.SetField("descrip", entity.descrip); row.SetField("backfunc", entity.backfunc); row.SetField("priority", entity.priority); row.SetField("userfield", entity.userfield); }
public static Sasttorderoriginlkupresults BuildSasttorderoriginlkupresultsFromRow(DataRow row) { Sasttorderoriginlkupresults entity = new Sasttorderoriginlkupresults(); entity.codeiden = row.IsNull("codeiden") ? string.Empty : row.Field <string>("codeiden"); entity.codeval = row.IsNull("codeval") ? string.Empty : row.Field <string>("codeval"); entity.descrip = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip"); entity.backfunc = row.IsNull("backfunc") ? string.Empty : row.Field <string>("backfunc"); entity.priority = row.IsNull("priority") ? 0 : row.Field <int>("priority"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }