/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOecalcordmargincriteria(ref DataRow row, Oecalcordmargincriteria entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("nptotfl", entity.nptotfl); row.SetField("customparam", entity.customparam); }
public static Oecalcordmargincriteria BuildOecalcordmargincriteriaFromRow(DataRow row) { Oecalcordmargincriteria entity = new Oecalcordmargincriteria(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.nptotfl = row.Field <bool>("nptotfl"); entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam"); return(entity); }