passing arguments for where constraint

Aug 13, 2009 at 10:50 AM

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

Coordinator
Aug 13, 2009 at 12:43 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.