On Wed, Feb 3, 2010 at 10:49 AM, Ivan Porto Carrero <
i...@whiterabbitconsulting.eu> wrote:

> For lightspeed I wrote an internal dsl that allows you to query similarly
> to the regular api but no special module for linq stuff. I skipped linq
> altogether didn't need it there.
>
> so what I created there is (It's in the asp.net mvc chapter btw)
>
> find_all User do
>    where a(:name).like("ivan%") & a(:age) > 23
>    order_by :name.desc
> end
>
> that may be wrong but it's close to something like that..
>

I like that syntax. It reminds me of F#'s computation expressions. I was
thinking something more along the lines of what
arel<http://m.onkey.org/2010/1/22/active-record-query-interface?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+monkeyonrails+(m.onkey+on+rails)>is
doing.

Ryan
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to