protected virtual IDbCommand ResolveQuery() { var factory = new QueryResolverFactory(); var resolver = factory.Instantiate(args.QueryArgs); var cmd = resolver.Execute(); return(cmd); }
protected IList <object> GetMembersFromResultSet(Object obj) { if (!(obj is IDbCommand)) { throw new ArgumentException(); } var args = new DbCommandQueryResolverArgs((IDbCommand)obj); var factory = new QueryResolverFactory(); var resolver = factory.Instantiate(args); var command = resolver.Execute(); var qe = new QueryEngineFactory().GetExecutor(command); var members = qe.ExecuteList <string>(); return(members.Cast <object>().ToList()); }