本文介绍了如何实现批量与Oracle作业时,功能NHibernate获取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直使用与Oracle但NHibernate的未来功能不支持它试图。
I've tried using Future feature with Oracle but NHibernate does not support it.
我读过一些关于批量抓取功能:
I've read some about Batch Fetching feature: http://docs.huihoo.com/hibernate/nhibernate-reference-1.2.0/performance.html
我怎么能使用它与功能NHibernate?究竟应该如何配置?
How could I use it with Fluent NHibernate? how should it be configured?
推荐答案
要给你答案如何使用配料用流利的:
To give you the answer how to use batching with fluent:
1)上colleciton
1) on the colleciton
HasMany<MyEntity>(x => x.Entities)
.BatchSize(100);
2)上一流水平
2) on a class level
public MyEntityMap()
{
Id(x => x....
...
BatchSize(100);
与此对应的href=\"http://nhibernate.info/doc/nhibernate-reference/performance.html#performance-fetching-batch\" rel=\"nofollow\"> 19.1.5的
这篇关于如何实现批量与Oracle作业时,功能NHibernate获取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!