eager-loading
Rails 3 Limiting Included Objects
For example I have a blog object, and that blog has many posts. I want to do eager loading of say the first blog object and include say the first 10 posts of it. Curr开发者_高级运维ently I would do @b[详细]
2023-03-21 05:58 分类:问答Rails: Structuring a query involving a polymorphic association and STI
I\'m trying to find the 10 most recent comments on photos so I can integrate them into an activity feed on my Rails 3.0.3 application.[详细]
2023-03-17 15:16 分类:问答EF Code first Eager loading and OrderBy problem
I have two entities called Category and Product with 1:n relation. I want to get a Category with its childs that childs be in order.[详细]
2023-03-17 11:19 分类:问答Eager load Paperclip's has_attached_file data?
Product has_many :assets Asset belongs_to :product Asset has_attached_file :photo using Paperclip (with all your standard Paperclip options; a few styles, S3 storage).[详细]
2023-03-16 05:37 分类:问答How do you do eager loading with limits?
In the documentation for eager loading it is stated that: If you eager load an association with a specified :limit option, it will be ignored, returning all the associated objects:[详细]
2023-03-15 03:53 分类:问答NHibernate AliasToBeanResultTransformer & Collections
I would like to return a DTO from my data layer which would also contain child collections...such as this:[详细]
2023-03-13 09:06 分类:问答Serialize Entity Framework object with children to XML file
I\'m querying data with parent/child result sets using Entity Framework and I want to export this data to an XML document.[详细]
2023-03-10 13:48 分类:问答NHibernate ThenFetchMany is retrieving duplicate children
I have a parent object with a child collection containing one element, the child collection contains a \"grandchild\" collection containing 3 elements.[详细]
2023-03-10 01:20 分类:问答Entity Framework 4.1 - TPT Eager Loading - "The ResultType of the specified expression is not compatible with the required type"
I have a model with TPT inheritance. Location (abstract) Street (derived from Location) GoogleStreetView (1 Street -> 0..1 GoogleStreetView)[详细]
2023-03-09 16:33 分类:问答Can I define eager loading per datacontext instead per query?
Is there a way to define eager loading per entire data conte开发者_JAVA技巧xt, so I could state something like this -- \"when using this data context when loading Customer always load associated City[详细]
2023-03-08 17:27 分类:问答