0

I have a entity mapped to a table and an extra column which is not mapped.

Is it possible to make a select using criteria and filter on that extra column?

florin
  • 405
  • 4
  • 20
  • possible duplicate of [Query Unmapped Columns in NHibernate](http://stackoverflow.com/questions/657170/query-unmapped-columns-in-nhibernate) – Jay Sep 13 '10 at 20:08
  • almost, just that mapping the columns is not an acceptable solution for me – florin Sep 16 '10 at 14:07

2 Answers2

2

The definitive answer: http://ayende.com/Blog/archive/2009/06/10/nhibernate-ndash-query-only-properties.aspx

This question is a duplicate: Query Unmapped Columns in NHibernate

Community
  • 1
  • 1
Jay
  • 56,361
  • 10
  • 99
  • 123
1

You could use Expression.Sql to create an arbitrary filter that can include unmapped columns. Lots of examples around.

Mauricio Scheffer
  • 98,863
  • 23
  • 192
  • 275