在使用Oracle时,如何使用Fluent NHibernate实现批量提取?

我尝试过使用Futurefunction和Oracle,但NHibernate不支持它。

我已经阅读了一些关于Batch Fetchingfunction的内容: http : //docs.huihoo.com/hibernate/nhibernate-reference-1.2.0/performance.html

我如何在Fluent NHibernate中使用它? 应该如何配置?

为您提供如何使用流畅的批处理的答案:

1)在集体上

 HasMany(x => x.Entities) .BatchSize(100); 

2)在class级

 public MyEntityMap() { Id(x => x.... ... BatchSize(100); 

这与19.1.5相对应。 使用批量提取