/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, ArspBase entity) { row.SetField("cono", entity.cono); row.SetField("custno", entity.custno); row.SetField("arspRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromArspBase(ref DataRow row, ArspBase entity) { row.SetField("cono", entity.cono); row.SetField("custno", entity.custno); row.SetField("per1bal1", entity.per1bal1); row.SetField("per1bal2", entity.per1bal2); row.SetField("per1bal3", entity.per1bal3); row.SetField("per1bal4", entity.per1bal4); row.SetField("per1bal5", entity.per1bal5); row.SetField("per1bal6", entity.per1bal6); row.SetField("per1bal7", entity.per1bal7); row.SetField("per1bal8", entity.per1bal8); row.SetField("per1bal9", entity.per1bal9); row.SetField("per1bal10", entity.per1bal10); row.SetField("per1bal11", entity.per1bal11); row.SetField("per1bal12", entity.per1bal12); row.SetField("per2bal1", entity.per2bal1); row.SetField("per2bal2", entity.per2bal2); row.SetField("per2bal3", entity.per2bal3); row.SetField("per2bal4", entity.per2bal4); row.SetField("per2bal5", entity.per2bal5); row.SetField("per2bal6", entity.per2bal6); row.SetField("per2bal7", entity.per2bal7); row.SetField("per2bal8", entity.per2bal8); row.SetField("per2bal9", entity.per2bal9); row.SetField("per2bal10", entity.per2bal10); row.SetField("per2bal11", entity.per2bal11); row.SetField("per2bal12", entity.per2bal12); row.SetField("per3bal1", entity.per3bal1); row.SetField("per3bal2", entity.per3bal2); row.SetField("per3bal3", entity.per3bal3); row.SetField("per3bal4", entity.per3bal4); row.SetField("per3bal5", entity.per3bal5); row.SetField("per3bal6", entity.per3bal6); row.SetField("per3bal7", entity.per3bal7); row.SetField("per3bal8", entity.per3bal8); row.SetField("per3bal9", entity.per3bal9); row.SetField("per3bal10", entity.per3bal10); row.SetField("per3bal11", entity.per3bal11); row.SetField("per3bal12", entity.per3bal12); row.SetField("per4bal1", entity.per4bal1); row.SetField("per4bal2", entity.per4bal2); row.SetField("per4bal3", entity.per4bal3); row.SetField("per4bal4", entity.per4bal4); row.SetField("per4bal5", entity.per4bal5); row.SetField("per4bal6", entity.per4bal6); row.SetField("per4bal7", entity.per4bal7); row.SetField("per4bal8", entity.per4bal8); row.SetField("per4bal9", entity.per4bal9); row.SetField("per4bal10", entity.per4bal10); row.SetField("per4bal11", entity.per4bal11); row.SetField("per4bal12", entity.per4bal12); row.SetField("per5bal1", entity.per5bal1); row.SetField("per5bal2", entity.per5bal2); row.SetField("per5bal3", entity.per5bal3); row.SetField("per5bal4", entity.per5bal4); row.SetField("per5bal5", entity.per5bal5); row.SetField("per5bal6", entity.per5bal6); row.SetField("per5bal7", entity.per5bal7); row.SetField("per5bal8", entity.per5bal8); row.SetField("per5bal9", entity.per5bal9); row.SetField("per5bal10", entity.per5bal10); row.SetField("per5bal11", entity.per5bal11); row.SetField("per5bal12", entity.per5bal12); row.SetField("lstmthup", entity.lstmthup); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("servbal1", entity.servbal1); row.SetField("servbal2", entity.servbal2); row.SetField("servbal3", entity.servbal3); row.SetField("servbal4", entity.servbal4); row.SetField("servbal5", entity.servbal5); row.SetField("servbal6", entity.servbal6); row.SetField("servbal7", entity.servbal7); row.SetField("servbal8", entity.servbal8); row.SetField("servbal9", entity.servbal9); row.SetField("servbal10", entity.servbal10); row.SetField("servbal11", entity.servbal11); row.SetField("servbal12", entity.servbal12); row.SetField("credbal1", entity.credbal1); row.SetField("credbal2", entity.credbal2); row.SetField("credbal3", entity.credbal3); row.SetField("credbal4", entity.credbal4); row.SetField("credbal5", entity.credbal5); row.SetField("credbal6", entity.credbal6); row.SetField("credbal7", entity.credbal7); row.SetField("credbal8", entity.credbal8); row.SetField("credbal9", entity.credbal9); row.SetField("credbal10", entity.credbal10); row.SetField("credbal11", entity.credbal11); row.SetField("credbal12", entity.credbal12); row.SetField("lastupdt", entity.lastupdt); 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("avgpaydays1", entity.avgpaydays1); row.SetField("avgpaydays2", entity.avgpaydays2); row.SetField("avgpaydays3", entity.avgpaydays3); row.SetField("avgpaydays4", entity.avgpaydays4); row.SetField("avgpaydays5", entity.avgpaydays5); row.SetField("avgpaydays6", entity.avgpaydays6); row.SetField("avgpaydays7", entity.avgpaydays7); row.SetField("avgpaydays8", entity.avgpaydays8); row.SetField("avgpaydays9", entity.avgpaydays9); row.SetField("avgpaydays10", entity.avgpaydays10); row.SetField("avgpaydays11", entity.avgpaydays11); row.SetField("avgpaydays12", entity.avgpaydays12); row.SetField("transproc", entity.transproc); row.SetField("arspRowID", entity.rowID.ToByteArray()); }