English 中文(简体)
为什么在从事“工作”时没有获得自由的支持?
原标题:Why doesn t nHibernate support LIMIT when doing "join fetch"?
  • 时间:2010-03-29 11:51:13
  •  标签:
  • nhibernate

在自由邦,如果你与“参与”一道,急切地装上儿童收藏品,那么自由邦将忽视“SetaMaxResults”和“SetathResult”,并试图从数据库中检索任何单一项目。 为什么? 这种行为针对欧洲常规军,因为伊斯兰法院支持急切的装货(虽然是外装货)和利比亚武装部队。

详情见。 http://www.lesnikowski.com/blog/index.php/nhibernate-ignores-setmaxresults-in-sql/

关于该专题以及与“职业生活”有关的其他问题(例如,因此获得一个特许产品):rel=“nofollow noretinger”题目=“here”>,doesn t允许 p”_doesn tages 允许 p 亚洲开发银行一方的成果。

如果必须做同样的事情,那么怎么做?

SetMaxResults, but that might cause issues with the loading. At that point, I might want to execute two totally separate queries, first to get just the entities, then to load the related associations.

因此,这里的问题是什么,可能的解决办法是什么?

问题回答

就像自由邦一样,它总是通过外派加入急切装的藏书,试图把整个儿童聚集起来,结果形成了一套无同名的、左边相同的行。

 Id | CollectionId
-------------------
  1 | 1
  1 | 2
  2 | 3
  3 | 4
  3 | 5

你们有这个想法。 在这种增长组合上,教育、青年和体育部将没有任何意义,因为你实际上会限制本国的内部数据,而不是限制结果,使你真正有兴趣。 然而,我尚未找到一种办法,用急切的负荷来做。 我认为,不可能只处理一个问题。





相关问题
nHibernate one-to-many inserts but doesnt update

Instead of getting into code, I have a simple question. Default behavior for a simple one-to-many is that it inserts the child record then updates the foreign key column with the parent key. Has ...

How Do I copy an existing nhibernate object as a new object?

I a persisted NHibernate object that I would like to repersist as a new entity. How do I get NHibernate to save this object as if it was a new? I am thinking I might create a session interceptor to ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

WPF - MVVM - NHibernate Validation

Im facing a bit of an issue when trying to validate a decimal property on domain object which is bound to a textbox on the view through the viewmodel. I am using NHibernate to decorate my property on ...

NHibernate Search in a List using ICriteria

I have my class X : public class ClassX { public virtual IList<ClassY> ListY { get; set; } ... } My ClassX mapping (using Fluent) ... HasMany<ClassX>(x => x.ListY ) ....