Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我过去曾使用 NHibernate Futures 和 NHibernate CreateMultiCriteria 来批处理 sql 查询。有什么理由让我想使用其中一个。这两种方法是等效的还是偏好问题?
据我了解,某些数据库不支持 CreateMultiCriteria。我只在 MySQL 和 SQL Server 上尝试过。检查您的提供商的 SupportsMultipleQueries 属性。如果提供者支持,Future 会退回到单个请求或批处理。