How to implement batch fetching with Fluent NHibernate when working with Oracle?

一曲冷凌霜 提交于 2019-11-27 02:17:04
Radim Köhler

To give you the answer how to use batching with fluent:

1) on the colleciton

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

2) on a class level

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

This corresponds with the 19.1.5. Using batch fetching

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!