This project is read-only.

Requery Query Result

Aug 14, 2009 at 2:52 PM

Hello

I have a Query:

query = @"from s  in db
          where s.FiKey.Equals(key)
          orderby s.Time descending
          select new {db = s.Time,
                      ob = s.BarQuote.Open,
                      hb = s.BarQuote.High,
                      lb = s.BarQuote.Low,
                      cb = s.BarQuote.Close}";

Now I try to requery LinqToMemory.List()    //which is a List of Variant

This works so far:

query = @"from Variant b in base
          select new {a = 1}";

But I am not able to access the elements:

//Don't work
query = @"from Variant b in base
          select new {a = b[db]}";

//Don't work either
query = @"from Variant b in base
          select new {a = b.db}";

Could you help me out?

Thanks!
Chris

Aug 14, 2009 at 10:03 PM

I would have done b["db"].

Aug 15, 2009 at 8:24 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.