RelationshipLoading extension

Batch eager loading with bounded parameter lists. Results use the context's identity map and preserve local changes on already tracked entities.

on

Methods

loadCollections<C, P>(ForeignKey<C, P> relation, Iterable<EntityEntry<P>> parents) → Future<Map<EntityEntry<P>, List<C>>>

Available on DbContext, provided by the RelationshipLoading extension

Loads children for parents in batches.
loadReferences<C, P>(ForeignKey<C, P> relation, Iterable<EntityEntry<C>> children) → Future<Map<EntityEntry<C>, P?>>

Available on DbContext, provided by the RelationshipLoading extension

Loads parents for children in batches.