如何实现批量与Oracle作业时,功能NHibernate获取? [英] How to implement batch fetching with Fluent NHibernate when working with Oracle?

查看:178
本文介绍了如何实现批量与Oracle作业时,功能NHibernate获取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直使用与Oracle但NHibernate的未来功能不支持它试图。

I've tried using Future feature with Oracle but NHibernate does not support it.

我读过一些关于批量抓取功能: HTTP: //docs.huihoo.com/hibernate/nhibernate-reference-1.2.0/performance.html

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获取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆