eager-loading
EF4 LINQ Ordering Parent and all child collections with Eager Loading (.Include())
I am doing hierarchical data binding on a grid, and I need to have the database server perform the sorting on my objects.I can easily sort the 开发者_如何学JAVAparent collection, but I can\'t seem to[详细]
2023-01-24 09:11 分类:问答NHibernate double fetching for non-existent many-to-one relationship
I have an entity with several Many to One relationships and I\'ve found I can eagerly fetch them in one query like such:[详细]
2023-01-19 23:36 分类:问答Linq to entities - how to select entities with a where condition on their entitycollection?
I found several times people asking for the same question but it seems that the answer was never satisfying altough it should be pretty easy (in theory). Here is my question :[详细]
2023-01-19 12:20 分类:问答Using Linq-to-SQL preload without joins
Like many people, I am trying to squeeze the best performance out of my app while keeping the code simple and readable as possible. I am using Linq-to-SQL and am really trying to keep my data layer as[详细]
2023-01-16 23:20 分类:问答Can I eager load a property using HQL?
I\'m tryi开发者_开发知识库ng to work out how to eager load the customers in the following HQL query:[详细]
2023-01-15 20:43 分类:问答Entity Framework - Eager loading related entities
I\'m using Entity Framework 4 with MVC and need to ensure any referenced entities I want to use in my view have been loaded before the controller method returns, otherwise the view spits outthe dreade[详细]
2023-01-15 14:28 分类:问答Bounding an eagerly fetched collection
How can I eagerly fetch a collection, but just the N first items? Using this code works, but is there an \'official way\' to achieve that?[详细]
2023-01-11 21:20 分类:问答Problem with eager loading of nested models
I have some models - NewsArticle, Comment, User (as :author) and Profile. class NewsArticle < ActiveRecord::Base[详细]
2023-01-11 07:26 分类:问答Disable all lazy loading or force eager loading for a LINQ context
I have a document generator which contains queries for about 200 items a开发者_StackOverflowt the moment but will likely be upwards of 500 when complete. I\'ve recently noticed that some of the mappin[详细]
2023-01-10 01:51 分类:问答Applying a Condition to an Eager Load (Include) Request in Linq to Entities
I have a table Product. Product is related to ProductDescription in a one-to-many relationship. ProductDescription can have more than one row for each product. It will have multiple rows if there are[详细]
2023-01-09 00:43 分类:问答