[Ironruby-core] Linq syntax?
Ivan Porto Carrero
ivan at flanders.co.nz
Tue Apr 7 14:06:23 EDT 2009
Hi
What would be the syntax to call Linq methods?
for example:
I have an IQueryable<Users> and I want to get the equivalent out of
from user in MyRepository.Users
where user.name == "somename"
That of course is only one example, I want to do a lot more :)
My best guess is that I would have to do something like this only it doesn't
work
System::Linq::Queryable.where(MyRepository.Users, lambda { |user|
user.name== "somename" })
yields wrong number of arguments (2 for 2147483647)
So what is the correct way?
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090407/9b0fc2a7/attachment-0001.html>
More information about the Ironruby-core
mailing list