NHibernate.Linq and MultiCriteria

前端 未结 3 1583
花落未央
花落未央 2021-02-08 00:46

Anybody know of a way to batch NHibernate queries using NHibernate.Linq like you can do with MultiCriteria and ICriteria objects?

With MultiCriteria I can create somethi

3条回答
  •  有刺的猬
    2021-02-08 01:04

    NHibernate.Linq itself uses NHibernateQueryTranslator to translate from the LINQ expression to an ICriteria. You could do this too, then pass the resulting ICriteria into your IMultiCriteria.

提交回复
热议问题