Ejemplo n.º 1
0
            /// <summary>
            /// reads a table
            /// </summary>
            /// <typeparam name="TReturn"></typeparam>
            /// <param name="prototype"></param>
            /// <returns></returns>
            public TReturn[] ReadTable <TReturn>(TReturn prototype)
                where TReturn : class
            {
                if (!bExec)
                {
                    if (!ExecuteQuery())
                    {
                        return(null);
                    }
                }



                bool bOk = true;
                IArray <int, TReturn> a = new IArray <int, TReturn>();



                Expando q = Expando.Of(prototype);

                int counter = 0;

                while ((bOk) && (counter < 16))
                {
                    TReturn p = this.Read((TReturn)q.Clone());

                    if (p != null)
                    {
                        a.Push(p);
                    }
                    else
                    {
                        break;
                    }
                }


                return(a);
            }
Ejemplo n.º 2
0
 public new static Expando <TMember> Of(object e)
 {
     return(Expando.Of(e).To <Expando <TMember> >());
 }