开发者

NHibernate - use WHERE clause on one-to-one mapping

Is it possible to somehow restrict a one-to-one mapping with 开发者_JAVA技巧a constraint other than property ref? Ideally, something along the lines of the class definition, for example, where you can add where="Condition=Value".

Thanks


You can use nhibernate filters for this: http://nhibernate.info/blogs/nhibernate/archive/2009/05/04/nhibernate-filters.aspx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜