开发者

Filter using criteria on not mapped column

开发者 https://www.devze.com 2023-01-16 12:45 出处:网络
I have a entity mapped to a table and an extra column which is not mapped. Is it possible t开发者_StackOverflow社区o make a select using criteria and filter on that extra column?The definitive answer

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

Is it possible t开发者_StackOverflow社区o make a select using criteria and filter on that extra column?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消