Ejemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SasglBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("state", entity.state);
     row.SetField("taxauth", entity.taxauth);
     row.SetField("sasglRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasglBase(ref DataRow row, SasglBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("state", entity.state);
     row.SetField("taxauth", entity.taxauth);
     row.SetField("descrip", entity.descrip);
     row.SetField("gldivno1", entity.gldivno1);
     row.SetField("gldivno2", entity.gldivno2);
     row.SetField("gldivno3", entity.gldivno3);
     row.SetField("gldivno4", entity.gldivno4);
     row.SetField("gldeptno1", entity.gldeptno1);
     row.SetField("gldeptno2", entity.gldeptno2);
     row.SetField("gldeptno3", entity.gldeptno3);
     row.SetField("gldeptno4", entity.gldeptno4);
     row.SetField("glacctno1", entity.glacctno1);
     row.SetField("glacctno2", entity.glacctno2);
     row.SetField("glacctno3", entity.glacctno3);
     row.SetField("glacctno4", entity.glacctno4);
     row.SetField("glsubno1", entity.glsubno1);
     row.SetField("glsubno2", entity.glsubno2);
     row.SetField("glsubno3", entity.glsubno3);
     row.SetField("glsubno4", entity.glsubno4);
     row.SetField("saletaxn1", entity.saletaxn1);
     row.SetField("saletaxn2", entity.saletaxn2);
     row.SetField("saletaxn3", entity.saletaxn3);
     row.SetField("saletaxn4", entity.saletaxn4);
     row.SetField("saletaxn5", entity.saletaxn5);
     row.SetField("saletaxc1", entity.saletaxc1);
     row.SetField("saletaxc2", entity.saletaxc2);
     row.SetField("saletaxc3", entity.saletaxc3);
     row.SetField("saletaxc4", entity.saletaxc4);
     row.SetField("saletaxc5", entity.saletaxc5);
     row.SetField("saletaxo1", entity.saletaxo1);
     row.SetField("saletaxo2", entity.saletaxo2);
     row.SetField("saletaxo3", entity.saletaxo3);
     row.SetField("saletaxo4", entity.saletaxo4);
     row.SetField("saletaxo5", entity.saletaxo5);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     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("sasglRowID", entity.rowID.ToByteArray());
 }