Nhibernate-将多个参数传递到负载集合

Nhibernate-将多个参数传递到负载集合,nhibernate,Nhibernate,我在.hbm.xml中有与sql查询加载程序的集合映射: `<sql-query name="conpoints"> <load-collection alias="conpoint" role="Substation.ConnectionPoints" /> SELECT {conpoint.*} FROM CONNECTIONPOINT AS conpoint WHERE (conpoint.substationID=:Id AND NOT c

我在.hbm.xml中有与sql查询加载程序的集合映射:

`<sql-query name="conpoints">
<load-collection alias="conpoint" role="Substation.ConnectionPoints" />
    SELECT {conpoint.*}
    FROM CONNECTIONPOINT AS conpoint
    WHERE (conpoint.substationID=:Id AND NOT conpoint.ID=:ReceiverConnectionPoint.Id)
</sql-query>`
`
选择{conpoint.*}
从连接点到连接点
其中(conpoint.substationID=:Id而非conpoint.Id=:ReceiverConnectionPoint.Id)
`
我需要传递Id和ReceiverConnectionPoint.Id参数。但是NH只带走了其中一个。如何在sql查询中传递多个参数