Exemplo n.º 1
0
        protected virtual IDbCommand ResolveQuery()
        {
            var factory  = new QueryResolverFactory();
            var resolver = factory.Instantiate(args.QueryArgs);
            var cmd      = resolver.Execute();

            return(cmd);
        }
Exemplo n.º 2
0
        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());
        }