/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, EdihBase entity) { row.SetField("cono", entity.cono); row.SetField("batchnm", entity.batchnm); row.SetField("seqno", entity.seqno); row.SetField("edihRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromEdihBase(ref DataRow row, EdihBase entity) { row.SetField("cono", entity.cono); row.SetField("batchnm", entity.batchnm); row.SetField("seqno", entity.seqno); row.SetField("custpo", entity.custpo); row.SetField("custno", entity.custno); row.SetField("doctype", entity.doctype); row.SetField("reqshipdt", entity.reqshipdt); row.SetField("canceldt", entity.canceldt); row.SetField("refer", entity.refer); row.SetField("transtype", entity.transtype); row.SetField("nolineitem", entity.nolineitem); 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("taxablety", entity.taxablety); row.SetField("errstatusty", entity.errstatusty); row.SetField("transproc", entity.transproc); row.SetField("user4", entity.user4); row.SetField("user5", entity.user5); row.SetField("user6", entity.user6); row.SetField("user7", entity.user7); row.SetField("user8", entity.user8); row.SetField("user9", entity.user9); row.SetField("docid", entity.docid); row.SetField("errcnt", entity.errcnt); row.SetField("exccnt", entity.exccnt); row.SetField("whse", entity.whse); row.SetField("shipto", entity.shipto); row.SetField("edihRowID", entity.rowID.ToByteArray()); }