/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, GletBase entity) { row.SetField("cono", entity.cono); row.SetField("jrnlno", entity.jrnlno); row.SetField("transno", entity.transno); row.SetField("setno", entity.setno); row.SetField("gletRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGletBase(ref DataRow row, GletBase entity) { row.SetField("cono", entity.cono); row.SetField("gldivno", entity.gldivno); row.SetField("gldeptno", entity.gldeptno); row.SetField("glacctno", entity.glacctno); row.SetField("glsubno", entity.glsubno); row.SetField("jrnlno", entity.jrnlno); row.SetField("perfisc", entity.perfisc); row.SetField("postdt", entity.postdt); row.SetField("refer", entity.refer); row.SetField("percal", entity.percal); row.SetField("extendfl", entity.extendfl); row.SetField("amount", entity.amount); row.SetField("transno", entity.transno); row.SetField("transcd", entity.transcd); row.SetField("operinit", entity.operinit); row.SetField("custno", entity.custno); row.SetField("checkno", entity.checkno); row.SetField("invno", entity.invno); row.SetField("invsuf", entity.invsuf); row.SetField("currproc", entity.currproc); row.SetField("setno", entity.setno); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("updglty", entity.updglty); row.SetField("yr", entity.yr); row.SetField("disputefl", entity.disputefl); row.SetField("hashfl", entity.hashfl); row.SetField("apinvno", entity.apinvno); row.SetField("vendno", entity.vendno); row.SetField("referfl", entity.referfl); row.SetField("exchgrate", entity.exchgrate); row.SetField("mediacd", entity.mediacd); row.SetField("mediaauth", entity.mediaauth); row.SetField("coamount", entity.coamount); row.SetField("charmediaauth", entity.charmediaauth); 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("transdttmz", entity.transdttmz); row.SetField("gletRowID", entity.rowID.ToByteArray()); }