/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOeesdetaillineaftertally(ref DataRow row, Oeesdetaillineaftertally entity) { row.SetField("lineno", entity.lineno); row.SetField("holddelayfl", entity.holddelayfl); row.SetField("qtyord", entity.qtyord); row.SetField("unit", entity.unit); row.SetField("userfield", entity.userfield); }
public static Oeesdetaillineaftertally BuildOeesdetaillineaftertallyFromRow(DataRow row) { Oeesdetaillineaftertally entity = new Oeesdetaillineaftertally(); entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno"); entity.holddelayfl = row.Field <bool>("holddelayfl"); entity.qtyord = row.IsNull("qtyord") ? decimal.Zero : row.Field <decimal>("qtyord"); entity.unit = row.IsNull("unit") ? string.Empty : row.Field <string>("unit"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }