开发者

Filter using criteria on not mapped column

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜