/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromItemhistdtlcriteria(ref DataRow row, Itemhistdtlcriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("abs_num", entity.absNum); row.SetField("rangeType", entity.rangeType); row.SetField("itemhistdtlcrituserfield", entity.itemhistdtlcrituserfield); row.SetField("userfield", entity.userfield); }
public static Itemhistdtlcriteria BuildItemhistdtlcriteriaFromRow(DataRow row) { Itemhistdtlcriteria entity = new Itemhistdtlcriteria(); 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.absNum = row.IsNull("abs_num") ? string.Empty : row.Field <string>("abs_num"); entity.rangeType = row.IsNull("rangeType") ? string.Empty : row.Field <string>("rangeType"); entity.itemhistdtlcrituserfield = row.IsNull("itemhistdtlcrituserfield") ? string.Empty : row.Field <string>("itemhistdtlcrituserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }