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