passing arguments for where constraint
description
Hello
I am using NLinq with ScriptDotNet very successfully but now I run into a problem.
This works:
query = @"from s in db where s.FiKey.Equals('MAN.DE') select new {s = s.BarQuote.Open, c = s.BarQuote.Close}";// ...test.AddSource("db", Db.AsQueryable<|EodQuote|>());
But this does not:
query = @"from s in db where s.FiKey.Equals(key) select new {s = s.BarQuote.Open, c = s.BarQuote.Close}";// ...
test.AddSource("db", Db.AsQueryable<|EodQuote|>());test.AddSource("key", "MAN.DE");
Can you tell me how to pass arguments for constraints?
Thanks
Christian Meier
PS using fresh new NLinq version 1.0