/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSasgsBase(ref DataRow row, SasgsBase entity) { row.SetField("cono", entity.cono); row.SetField("state", entity.state); row.SetField("descrip", entity.descrip); row.SetField("taxid", entity.taxid); row.SetField("saletax1", entity.saletax1); row.SetField("saletax2", entity.saletax2); row.SetField("saletax3", entity.saletax3); row.SetField("saletax4", entity.saletax4); row.SetField("saletax5", entity.saletax5); row.SetField("glacctno", entity.glacctno); row.SetField("gldivno", entity.gldivno); row.SetField("gldeptno", entity.gldeptno); row.SetField("glsubno", entity.glsubno); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("taxgroup1", entity.taxgroup1); row.SetField("taxgroup2", entity.taxgroup2); row.SetField("taxgroup3", entity.taxgroup3); row.SetField("taxgroup4", entity.taxgroup4); row.SetField("taxgroup5", entity.taxgroup5); row.SetField("taxgroup6", entity.taxgroup6); row.SetField("taxgroup7", entity.taxgroup7); row.SetField("taxgroup8", entity.taxgroup8); row.SetField("taxgroup9", entity.taxgroup9); row.SetField("pstgstfl", entity.pstgstfl); row.SetField("addontaxfl1", entity.addontaxfl1); row.SetField("addontaxfl2", entity.addontaxfl2); row.SetField("addontaxfl3", entity.addontaxfl3); row.SetField("addontaxfl4", entity.addontaxfl4); row.SetField("addontaxfl5", entity.addontaxfl5); row.SetField("addontaxfl6", entity.addontaxfl6); row.SetField("addontaxfl7", entity.addontaxfl7); row.SetField("addontaxfl8", entity.addontaxfl8); row.SetField("addontaxfl9", entity.addontaxfl9); row.SetField("harmonizedfl", entity.harmonizedfl); 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("transproc", entity.transproc); row.SetField("termsdisconpstfl", entity.termsdisconpstfl); row.SetField("ecsalesfl", entity.ecsalesfl); row.SetField("dsplvatbrkdwnfl", entity.dsplvatbrkdwnfl); row.SetField("glacctno2", entity.glacctno2); row.SetField("gldivno2", entity.gldivno2); row.SetField("gldeptno2", entity.gldeptno2); row.SetField("glsubno2", entity.glsubno2); row.SetField("sasgsRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, SasgsBase entity) { row.SetField("cono", entity.cono); row.SetField("state", entity.state); row.SetField("sasgsRowID", entity.rowID.ToByteArray()); }