NHibernate How do I query against an IList property?

后端 未结 6 762
死守一世寂寞
死守一世寂寞 2020-11-29 10:37

I am trying to query against an IList property on one of my domain classes using NHibernate. Here is a simple example to demonstrate:

public cl         


        
6条回答
  •  遥遥无期
    2020-11-29 11:11

    So because of limitations of the Criteria API, I decided to bend my domain classes to fit.

    I created an entity class for the Tag. I couldn't even create it as a value object. It had to have its own id.

    I feel dirty now. But being able to construct a dynamic query without resorting to string manipulation was more important to me than staying true to the domain.

提交回复
热议问题