1

Resolved

Requery Query Result

description

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 workquery = @"from Variant b in base select new {a = b[db]}";
 
//Don't work eitherquery = @"from Variant b in base select new {a = b.db}";
 
Could you help me out?
 
Thanks! Chris

file attachments

comments

sebastienros wrote Aug 15, 2009 at 7:25 AM

I have attached a fix. Please us the standard syntax: b.db

wrote Aug 15, 2009 at 7:25 AM

wrote Aug 15, 2009 at 7:26 AM

cikic wrote Aug 15, 2009 at 10:06 AM

yes, works very well.

Thank you! ... once more :-)
Chris

wrote Feb 13, 2013 at 8:49 PM

wrote May 16, 2013 at 3:30 AM

wrote May 16, 2013 at 3:30 AM

wrote Jun 14, 2013 at 7:29 AM