Querying when I don't have the 'T'

54 views
Skip to first unread message

Dru Sellers

unread,
May 11, 2012, 11:41:08 PM5/11/12
to rav...@googlegroups.com
I am curious, let's say that I don't have the actual 'T' for a generic query. Does ravendb support something like:

session.Query(typeof(Person)).Where("Name","Dru").ToList();


If not I can use the hell out of reflection, but thought I would ask first.

-d

Oren Eini (Ayende Rahien)

unread,
May 12, 2012, 9:25:31 AM5/12/12
to rav...@googlegroups.com
Sure,

session.Advanced.LuceneQuery<object>("dynamic/People")
  .WhereEquals("Name", "Dru")
  .toList

Dru Sellers

unread,
May 12, 2012, 9:42:33 AM5/12/12
to rav...@googlegroups.com
Thanks! :)
-d
Reply all
Reply to author
Forward
0 new messages