public static object Import(TableReportElement element, string connectionString, IDictionary <string, object> parameters = null) { if (element.Expression != null) { return(_EvaluateExpression(element)); } IDatabase <DataTable> db = new Database() { ConnectionString = connectionString }; string sql = element.Query.ToSQL(); var dataTable = db.ExecuteQuery(sql); return(dataTable); }
public abstract bool Export(TableReportElement item, IReportDocument document);