/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromEmptranssummarycriteria(ref DataRow row, Emptranssummarycriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("emp_num", entity.empNum); row.SetField("rangeType", entity.rangeType); row.SetField("emptranssummcrituserfield", entity.emptranssummcrituserfield); row.SetField("userfield", entity.userfield); }
public static Emptranssummarycriteria BuildEmptranssummarycriteriaFromRow(DataRow row) { Emptranssummarycriteria entity = new Emptranssummarycriteria(); entity.coNum = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num"); entity.whNum = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num"); entity.empNum = row.IsNull("emp_num") ? string.Empty : row.Field <string>("emp_num"); entity.rangeType = row.IsNull("rangeType") ? string.Empty : row.Field <string>("rangeType"); entity.emptranssummcrituserfield = row.IsNull("emptranssummcrituserfield") ? string.Empty : row.Field <string>("emptranssummcrituserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }