コード例 #1
0
ファイル: QueryScalarResolver.cs プロジェクト: WimDeRons/NBi
        protected virtual IDbCommand ResolveQuery()
        {
            var factory  = new QueryResolverFactory();
            var resolver = factory.Instantiate(args.QueryArgs);
            var cmd      = resolver.Execute();

            return(cmd);
        }
コード例 #2
0
ファイル: OrderedConstraint.cs プロジェクト: WimDeRons/NBi
        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());
        }