/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, TaxtableBase entity) { row.SetField("cono", entity.cono); row.SetField("sourcecd", entity.sourcecd); row.SetField("srcrowpointer", entity.srcrowpointer); row.SetField("taxtableRowID", entity.rowID.ToByteArray()); row.SetField("rowpointer", entity.rowpointer); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromTaxtableBase(ref DataRow row, TaxtableBase entity) { row.SetField("cono", entity.cono); row.SetField("sourcecd", entity.sourcecd); row.SetField("accountno", entity.accountno); row.SetField("vatregno", entity.vatregno); row.SetField("invoicedt", entity.invoicedt); row.SetField("glpostdt", entity.glpostdt); row.SetField("srcrowpointer", entity.srcrowpointer); row.SetField("documentty", entity.documentty); row.SetField("exchgrate", entity.exchgrate); row.SetField("multigrpfl", entity.multigrpfl); row.SetField("documentref", entity.documentref); row.SetField("form625fl", entity.form625fl); row.SetField("exceedstoln", entity.exceedstoln); row.SetField("returndt", entity.returndt); row.SetField("editrans", entity.editrans); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("operinit", entity.operinit); row.SetField("transproc", entity.transproc); row.SetField("currencyty", entity.currencyty); row.SetField("divno", entity.divno); row.SetField("transcd", entity.transcd); row.SetField("countrycd", entity.countrycd); row.SetField("shipto", entity.shipto); row.SetField("transtype", entity.transtype); row.SetField("gldivno", entity.gldivno); row.SetField("paiddt", entity.paiddt); row.SetField("apinvno", entity.apinvno); row.SetField("custpo", entity.custpo); 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("user6", entity.user6); row.SetField("user7", entity.user7); row.SetField("user8", entity.user8); row.SetField("user9", entity.user9); row.SetField("rowpointer", entity.rowpointer); row.SetField("periodid", entity.periodid); row.SetField("taxtableRowID", entity.rowID.ToByteArray()); }