public IQuery Execute() { var parser = factory.Instantiate(args.Source); var request = new SharedDatasetRequest(args.Source, args.Path, args.Name); var parsingResult = parser.ExtractCommand(request); var query = new Query(parsingResult.Text, args.ConnectionString, args.Timeout, args.Parameters, args.Variables, parsingResult.CommandType); return(query); }
public IDbCommand Execute() { var parser = factory.Instantiate(args.Source); var request = new SharedDatasetRequest(args.Source, args.Path, args.Name); var parsingResult = parser.ExtractCommand(request); var commandBuilder = new CommandBuilder(); var cmd = commandBuilder.Build(args.ConnectionString, parsingResult.Text, parsingResult.CommandType, args.Parameters, args.Variables, args.Timeout); return(cmd); }
public override string GetQuery() { var factory = new ReportingParserFactory(); var parser = factory.Instantiate(Source); var request = new SharedDatasetRequest ( Source, string.IsNullOrEmpty(Source) ? Settings.BasePath + Path : Path, Name ); command = parser.ExtractCommand(request); return(command.Text); }
public override string GetQuery() { var factory = new ReportingParserFactory(); var parser = factory.Instantiate(Source); var request = new ReportDataSetRequest ( Source ?? Settings.BasePath, Path, Name, Dataset ); command = parser.ExtractCommand(request); return(command.Text); }