/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadwlinqcriteria(ref DataRow row, Loadwlinqcriteria entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("seqno", entity.seqno); row.SetField("ordertype", entity.ordertype); row.SetField("whseview", entity.whseview); row.SetField("customparam", entity.customparam); }
public static Loadwlinqcriteria BuildLoadwlinqcriteriaFromRow(DataRow row) { Loadwlinqcriteria entity = new Loadwlinqcriteria(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.ordertype = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype"); entity.whseview = row.IsNull("whseview") ? string.Empty : row.Field <string>("whseview"); entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam"); return(entity); }