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