I would create a QueryOver like this
SELECT * FROM Table WHERE Field IN (1,2,3,4,5)
I tried using the Contains method, but I ran into Exception
"System.Exception: unrecognized method call: System.String: Boolean Contains (System.String)"
Here is my code
var qOver = _HibSession.QueryOver<MyModel>(() => baseModel) .JoinAlias(() => baseModel.Submodels, () => subModels) .Where(() => subModels.ID.Contains(IDsSubModels)) .List<MyModel>();
c # nhibernate where-in queryover nhibernate-queryover
Faber Mar 23 2018-11-11T00: 00Z
source share