/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromEdilBase(ref DataRow row, EdilBase entity) { row.SetField("cono", entity.cono); row.SetField("batchnm", entity.batchnm); row.SetField("seqno", entity.seqno); row.SetField("lineno", entity.lineno); row.SetField("qtyord", entity.qtyord); row.SetField("unit", entity.unit); row.SetField("price", entity.price); row.SetField("reqprod", entity.reqprod); row.SetField("shipprod", entity.shipprod); row.SetField("xrefprodty", entity.xrefprodty); row.SetField("proddesc", entity.proddesc); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("operinit", entity.operinit); row.SetField("user1", entity.user1); row.SetField("user2", entity.user2); row.SetField("user3", entity.user3); row.SetField("user4", entity.user4); row.SetField("user5", entity.user5); row.SetField("proddesc2", entity.proddesc2); row.SetField("transproc", entity.transproc); row.SetField("edilineno", entity.edilineno); row.SetField("custprod", entity.custprod); row.SetField("manfl", entity.manfl); row.SetField("extlncom", entity.extlncom); row.SetField("errcnt", entity.errcnt); row.SetField("exccnt", entity.exccnt); row.SetField("taxablety", entity.taxablety); row.SetField("icspecrecno", entity.icspecrecno); row.SetField("extdesc", entity.extdesc); row.SetField("edilRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, EdilBase entity) { row.SetField("cono", entity.cono); row.SetField("batchnm", entity.batchnm); row.SetField("seqno", entity.seqno); row.SetField("lineno", entity.lineno); row.SetField("edilRowID", entity.rowID.ToByteArray()); }