public static Getcomplistresults BuildGetcomplistresultsFromRow(DataRow row) { Getcomplistresults entity = new Getcomplistresults(); entity.complist = row.IsNull("complist") ? string.Empty : row.Field <string>("complist"); entity.labellist = row.IsNull("labellist") ? string.Empty : row.Field <string>("labellist"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGetcomplistresults(ref DataRow row, Getcomplistresults entity) { row.SetField("complist", entity.complist); row.SetField("labellist", entity.labellist); }