live projections when using Advanced.LuceneQuery

36 views
Skip to first unread message

balazs

unread,
May 30, 2012, 9:16:05 AM5/30/12
to ravendb
How would one modify the example shown on
http://ravendb.net/docs/client-api/querying/static-indexes/live-projections
to use .Advanced.LuceneQuery ? That is, how would this code need to
change: documentSession.Query<Shipment, PurchaseHistoryIndex>()
.Where(x => x.UserId == userId)
.As<PurchaseHistoryViewItem>()
.ToArray();

Oren Eini (Ayende Rahien)

unread,
May 30, 2012, 9:36:41 AM5/30/12
to rav...@googlegroups.com
 documentSession.Advanced.LuceneQuery< PurchaseHistoryViewItem , PurchaseHistoryIndex>()
  .Where("UserId", userId)
  .ToArray();
Reply all
Reply to author
Forward
0 new messages