Projection option is not working...

12 views
Skip to first unread message

Ez

unread,
May 8, 2012, 10:31:38 AM5/8/12
to rav...@googlegroups.com
var results = session.Query<City, CityTheaters>()
   
.AsProjection<CityTheaters.Result>()
   
.ToList();

Intellisense does not give me .AsProjection option .. hence its not recognized. What am I missing? Thanks for the help.

Matt Warren

unread,
May 8, 2012, 10:41:11 AM5/8/12
to rav...@googlegroups.com
Have you got the Raven.Client.Linq namespace included?

If not you need this line of code at the top of your file:

     using Raven.Client.Linq;

Ez

unread,
May 8, 2012, 10:42:20 AM5/8/12
to rav...@googlegroups.com
thank you.. I tried most .. but not that..
Reply all
Reply to author
Forward
0 new messages