/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSlehlookupcriteria(ref DataRow row, Slehlookupcriteria entity) { row.SetField("imptype", entity.imptype); row.SetField("slupdtno", entity.slupdtno); row.SetField("openonlyfl", entity.openonlyfl); row.SetField("impdescrip", entity.impdescrip); row.SetField("userfield", entity.userfield); }
public static Slehlookupcriteria BuildSlehlookupcriteriaFromRow(DataRow row) { Slehlookupcriteria entity = new Slehlookupcriteria(); entity.imptype = row.IsNull("imptype") ? string.Empty : row.Field <string>("imptype"); entity.slupdtno = row.IsNull("slupdtno") ? string.Empty : row.Field <string>("slupdtno"); entity.openonlyfl = row.Field <bool>("openonlyfl"); entity.impdescrip = row.IsNull("impdescrip") ? string.Empty : row.Field <string>("impdescrip"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }