This is a simple solution to using the IN statement in fluent NHibernate:
_session.QueryOver<Model>() .WhereRestrictionOn(x => x.Id) .IsIn(intList) .List<Model>();
In the example above, I am trying to get all models where the Id is in the intList.
This is a simple solution to using the IN statement in fluent NHibernate:
_session.QueryOver<Model>() .WhereRestrictionOn(x => x.Id) .IsIn(intList) .List<Model>();
In the example above, I am trying to get all models where the Id is in the intList.