If you note in the comments to that post that it would be very hard to implement in LINQ. It is most likely that the LINQ provider does not support this functionality. If you really need it then I would suggest using the HQL as in Ayende's post.
John Davidson On Fri, Jul 8, 2011 at 10:40 AM, Andrei Alecu <[email protected]>wrote: > Hello, > > I have recently tried to define a mapping for a property that is defined > using a formula, and it uses access="noop". > > I only want to be able to specify this property in where clauses, yet I > still see it in all SELECTs being issued to the database. I'm using the Linq > provider. > > Based on this article, it shouldn't show up in the select list: (though, it > doesn't explicitly specify <map> with a formula and noop) > http://ayende.com/blog/4054/**nhibernate-query-only-**properties<http://ayende.com/blog/4054/nhibernate-query-only-properties> > > Does anyone know if this is a bug or just something not yet supported? > > Thanks, > Andrei > > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to nhusers+unsubscribe@** > googlegroups.com <nhusers%[email protected]>. > For more options, visit this group at http://groups.google.com/** > group/nhusers?hl=en <http://groups.google.com/group/nhusers?hl=en>. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
