/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, SasbBase entity) { row.SetField("cono", entity.cono); row.SetField("currproc", entity.currproc); row.SetField("enterdt", entity.enterdt); row.SetField("entertm", entity.entertm); row.SetField("primarykey", entity.primarykey); row.SetField("sasbRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSasbBase(ref DataRow row, SasbBase entity) { row.SetField("cono", entity.cono); row.SetField("currproc", entity.currproc); row.SetField("enterdt", entity.enterdt); row.SetField("entertm", entity.entertm); row.SetField("primarykey", entity.primarykey); row.SetField("secondkey", entity.secondkey); row.SetField("operinit", entity.operinit); row.SetField("operinit2", entity.operinit2); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("chgbal1", entity.chgbal1); row.SetField("chgbal2", entity.chgbal2); row.SetField("chgbal3", entity.chgbal3); row.SetField("chgbal4", entity.chgbal4); row.SetField("chgbal5", entity.chgbal5); row.SetField("chgbal6", entity.chgbal6); row.SetField("chgbal7", entity.chgbal7); row.SetField("chgbal8", entity.chgbal8); row.SetField("chgbal9", entity.chgbal9); row.SetField("chgbal10", entity.chgbal10); row.SetField("chgbal11", entity.chgbal11); row.SetField("chgbal12", entity.chgbal12); row.SetField("chgbal13", entity.chgbal13); row.SetField("chgbal14", entity.chgbal14); row.SetField("chgbal15", entity.chgbal15); row.SetField("chgbal16", entity.chgbal16); row.SetField("chgbal17", entity.chgbal17); row.SetField("chgbal18", entity.chgbal18); row.SetField("chgbal19", entity.chgbal19); row.SetField("chgbal20", entity.chgbal20); row.SetField("errorno", entity.errorno); 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("sasbRowID", entity.rowID.ToByteArray()); }