我尝试过在 Oracle 中使用 Future 功能,但 NHibernate 不支持它。
我读过一些关于批量获取功能的内容:http://docs.huihoo.com/hibernate/nhibernate-reference-1.2.0/performance.html http://docs.huihoo.com/hibernate/nhibernate-reference-1.2.0/performance.html
我如何将它与 Fluent NHibernate 一起使用?应该如何配置?
为您提供如何使用 Fluent 进行批处理的答案:
1)关于收藏
HasMany<MyEntity>(x => x.Entities)
.BatchSize(100);
2)在班级层面
public MyEntityMap()
{
Id(x => x....
...
BatchSize(100);
这对应于19.1.5。使用批量抓取 http://nhibernate.info/doc/nhibernate-reference/performance.html#performance-fetching-batch
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)