public object Get(ReportParameters parameters) { ReportConfig reportConfig = GetReportConfig(parameters.ReportName); string query = GetQuery(reportConfig.Query, parameters); object connectionInfo = GetConnectionInfo(reportConfig.ReportDataType); return(GetData(query, connectionInfo)); }
public static ReportDataAccess GetInstance(string reportName) { ReportConfig reportConfig = GetReportConfig(reportName); if (reportConfig == null) { return(null); } return(GetReportDataAccess(reportConfig.ReportDataType)); }