public static void dump(int companyId, Action<object,string> saveData, string cs, List<string> queries) { var handler = new StoredProcedures(companyId, cs); handler.queries = queries; queries.Add("*** lmsql_CompanyDepartment"); saveData(handler._lmsql_CompanyDepartment(), "lmsql_CompanyDepartment"); queries.Add("*** lmsql_CompanyDepartmentCrsUser"); saveData(handler._lmsql_CompanyDepartmentCrsUser(), "lmsql_CompanyDepartmentCrsUser"); queries.Add("*** lmsql_CourseUser"); saveData(handler._lmsql_CourseUser(), "lmsql_CourseUser"); queries.Add("*** lmsql_Modules"); saveData(handler._lmsql_Modules(), "lmsql_Modules"); queries.Add("*** lmsql_MonthInfo"); saveData(handler._lmsql_MonthInfo(), "lmsql_MonthInfo"); queries.Add("*** lmsql_ScoreIntervals"); saveData(handler._lmsql_ScoreIntervals(), "lmsql_ScoreIntervals"); queries.Add("*** lmsql_SecIntervals"); saveData(handler._lmsql_SecIntervals(), "lmsql_SecIntervals"); queries.Add("*** lmsql_Time"); saveData(handler._lmsql_Time(), "lmsql_Time"); saveData(StoredProcedures.TocFlat.fromResources().Cast<StoredProcedures.TocFlat>().ToArray(), "lmsql_TocFlat"); queries.Add("*** lmsql_YearInfo"); saveData(handler._lmsql_YearInfo(), "lmsql_YearInfo"); }