Class E094_TreeDescendants_ef

Assembly: redb.Examples.dll

EF Core twin of . All descendants of a node, at any depth, need a
recursive query (WITH RECURSIVE); EF Core has no LINQ translation for it. The alternatives are raw SQL
or loading level by level with a round trip per level, neither of which answers in one query as redb does.

[ExampleMeta("E094_ef", "EF: Tree Descendants - All", "Trees", ExampleTier.Free, 1, new string[] { "EF", "Tree" })]
public class E094_TreeDescendants_ef : EfExampleBase

Inheritance

Object→ExampleBase→EfExampleBase→E094_TreeDescendants_ef

Inherited Members

Methods

RunEfAsync(IDbContextFactory<FlatContext>)

Runs the example through EF Core.

public override Task<ExampleResult> RunEfAsync(IDbContextFactory<FlatContext> contexts)