/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSaeggroups(ref DataRow row, Saeggroups entity) { row.SetField("oper", entity.oper); row.SetField("groupnm", entity.groupnm); row.SetField("descrip", entity.descrip); row.SetField("userfield", entity.userfield); }
public static Saeggroups BuildSaeggroupsFromRow(DataRow row) { Saeggroups entity = new Saeggroups(); entity.oper = row.IsNull("oper") ? string.Empty : row.Field <string>("oper"); entity.groupnm = row.IsNull("groupnm") ? string.Empty : row.Field <string>("groupnm"); entity.descrip = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }